mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
marking non-functional maya scripts
This commit is contained in:
parent
62853b5757
commit
7e9b9ad7fd
3 changed files with 1951 additions and 184 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -7,7 +7,7 @@ from avalon.vendor.Qt import QtWidgets, QtCore, QtGui
|
||||||
import maya.cmds as cmds
|
import maya.cmds as cmds
|
||||||
|
|
||||||
self = sys.modules[__name__]
|
self = sys.modules[__name__]
|
||||||
self._menu = "pype"
|
self._menu = os.environ['PYPE_STUDIO_NAME']
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ def deferred():
|
||||||
import scriptsmenu.launchformaya as launchformaya
|
import scriptsmenu.launchformaya as launchformaya
|
||||||
import scriptsmenu.scriptsmenu as scriptsmenu
|
import scriptsmenu.scriptsmenu as scriptsmenu
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.warning("Skipping pype.menu install, because "
|
log.warning("Skipping studio.menu install, because "
|
||||||
"'scriptsmenu' module seems unavailable.")
|
"'scriptsmenu' module seems unavailable.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -38,11 +38,11 @@ def deferred():
|
||||||
config = scriptsmenu.load_configuration(config_path)
|
config = scriptsmenu.load_configuration(config_path)
|
||||||
|
|
||||||
# run the launcher for Maya menu
|
# run the launcher for Maya menu
|
||||||
cb_menu = launchformaya.main(title=self._menu.title(),
|
studio_menu = launchformaya.main(title=self._menu.title(),
|
||||||
objectName=self._menu)
|
objectName=self._menu)
|
||||||
|
|
||||||
# apply configuration
|
# apply configuration
|
||||||
cb_menu.build_from_configuration(cb_menu, config)
|
studio_menu.build_from_configuration(studio_menu, config)
|
||||||
|
|
||||||
|
|
||||||
def uninstall():
|
def uninstall():
|
||||||
|
|
|
||||||
1767
pype/maya/menu_backup.json
Normal file
1767
pype/maya/menu_backup.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue