Update
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
##--------------------------------------------------------------------------
|
||||
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
|
||||
import json
|
||||
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
##GLOBAL VARIABLEs
|
||||
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import os
|
||||
|
||||
|
||||
@@ -1,24 +1,29 @@
|
||||
##GLOBAL VARIABLEs
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
from .Qt import QtWidgets, QtCore, QtCompat
|
||||
import os
|
||||
import maya.cmds as cmds
|
||||
from maya import OpenMayaUI as omui
|
||||
|
||||
# Special cases for different Maya versions
|
||||
try:
|
||||
from shiboken2 import wrapInstance
|
||||
except ImportError:
|
||||
from shiboken import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys
|
||||
import os as _os
|
||||
|
||||
try:
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
except ImportError:
|
||||
from PySide.QtGui import QIcon, QWidget
|
||||
# Add parent scripts directory to sys.path to enable absolute import of Qt
|
||||
_current_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _os.path.dirname(_os.path.dirname(_current_dir))
|
||||
if _scripts_dir not in sys.path:
|
||||
sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Import wrapInstance from QtCompat (handles all Qt binding versions)
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
|
||||
# Import QIcon and QWidget from Qt module
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
|
||||
from . import ModIt_CSS
|
||||
|
||||
|
||||
@@ -5,21 +5,24 @@
|
||||
## LastUpdate : 2022/13/09
|
||||
## Version : 0.0.1
|
||||
##-------------------------------------------------------------------------- I M P O R T
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.cmds as cmds
|
||||
import maya.mel as mel
|
||||
|
||||
@@ -8,21 +8,24 @@
|
||||
|
||||
from maya import cmds as mc
|
||||
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
|
||||
from maya import OpenMayaUI as omui
|
||||
##---------------------------------------- Import Modules
|
||||
|
||||
@@ -1,17 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
|
||||
|
||||
from maya import cmds as mc
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
|
||||
import json
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.cmds as cmds
|
||||
from maya import OpenMayaUI as omui
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"TAB_OPEN": 2}
|
||||
{"TAB_OPEN": 0}
|
||||
@@ -1,2 +1,2 @@
|
||||
[General]
|
||||
windowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x4V\0\0\0q\0\0\x5\xa9\0\0\x3\x37\0\0\x4V\0\0\0\x90\0\0\x5\xa9\0\0\x3\x37\0\0\0\0\0\0\0\0\a\x80\0\0\x4V\0\0\0\x90\0\0\x5\xa9\0\0\x3\x37)
|
||||
windowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x1\x86\0\0\0\x84\0\0\x2\xd9\0\0\x3\x36\0\0\x1\x86\0\0\0\xa3\0\0\x2\xd9\0\0\x3\x36\0\0\0\0\0\0\0\0\a\x80\0\0\x1\x86\0\0\0\xa3\0\0\x2\xd9\0\0\x3\x36)
|
||||
|
||||
@@ -1,18 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
|
||||
import json
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
##--------------------------------------------------------------------------
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
import maya.mel as mel
|
||||
import json
|
||||
|
||||
@@ -5,20 +5,24 @@
|
||||
## LastUpdate : 2022/13/09
|
||||
## Version : 0.0.1
|
||||
##-------------------------------------------------------------------------- I M P O R T
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
|
||||
from maya import cmds as mc
|
||||
from maya import OpenMayaUI as omui
|
||||
|
||||
@@ -5,21 +5,24 @@
|
||||
## LastUpdate : 2022/13/09
|
||||
## Version : 0.0.1
|
||||
##-------------------------------------------------------------------------- I M P O R T
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
from maya import OpenMayaUI as omui
|
||||
##---------------------------------------- Import Modules
|
||||
|
||||
@@ -5,21 +5,24 @@
|
||||
## LastUpdate : 2022/13/09
|
||||
## Version : 0.0.1
|
||||
##-------------------------------------------------------------------------- I M P O R T
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
from maya import OpenMayaUI as omui
|
||||
##---------------------------------------- Import Modules
|
||||
|
||||
@@ -5,21 +5,24 @@
|
||||
## LastUpdate : 2022/13/09
|
||||
## Version : 0.0.1
|
||||
##-------------------------------------------------------------------------- I M P O R T
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
from maya import cmds as mc
|
||||
from maya import OpenMayaUI as omui
|
||||
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
import sys
|
||||
|
||||
try:
|
||||
from PySide6 import QtWidgets, QtCore, QtGui
|
||||
from PySide6.QtWidgets import *
|
||||
from PySide6.QtGui import *
|
||||
from PySide6.QtCore import *
|
||||
from shiboken6 import wrapInstance
|
||||
# Import Qt from project's unified Qt.py module
|
||||
import sys as _sys
|
||||
import os as _os
|
||||
|
||||
except ImportError:
|
||||
from PySide2 import QtWidgets, QtCore, QtGui
|
||||
from shiboken2 import wrapInstance
|
||||
from PySide2.QtGui import QIcon
|
||||
from PySide2.QtWidgets import QWidget
|
||||
import shiboken2
|
||||
# Add parent scripts directory to sys.path
|
||||
_modit_dir = _os.path.dirname(_os.path.abspath(__file__))
|
||||
_scripts_dir = _modit_dir
|
||||
while _os.path.basename(_scripts_dir) != 'scripts' and _scripts_dir != _os.path.dirname(_scripts_dir):
|
||||
_scripts_dir = _os.path.dirname(_scripts_dir)
|
||||
if _scripts_dir not in _sys.path:
|
||||
_sys.path.insert(0, _scripts_dir)
|
||||
|
||||
from Qt import QtWidgets, QtCore, QtGui, QtCompat
|
||||
|
||||
# Use QtCompat for cross-version compatibility
|
||||
wrapInstance = QtCompat.wrapInstance
|
||||
QIcon = QtGui.QIcon
|
||||
QWidget = QtWidgets.QWidget
|
||||
import maya.OpenMayaUI as omui
|
||||
import maya.cmds as cmds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user