Add menu quad in hiero

This commit is contained in:
Ophelie Abbonato 2022-05-06 17:06:32 +02:00
parent 343440d95f
commit c14b8323db
3 changed files with 37 additions and 1 deletions

View file

@ -1,4 +1,36 @@
{
"ext_mapping": {
"model": "hrox",
"mayaAscii": "hrox",
"camera": "hrox",
"rig": "hrox",
"workfile": "hrox",
"yetiRig": "hrox"
},
"heiro-dirmap": {
"enabled": false,
"paths": {
"source-path": [],
"destination-path": []
}
},
"scriptsmenu": {
"name": "OpenPype Tools",
"definition": [
{
"type": "action",
"command": "import openpype.hosts.hiero.api.commands as hiero; hiero.edit_shader_definitions()",
"sourcetype": "python",
"title": "Edit shader name definitions",
"tooltip": "Edit shader name definitions used in validation and renaming.",
"tags": [
"pipeline",
"shader"
]
}
]
},
"create": {
"CreateShotClip": {
"hierarchy": "{folder}/{sequence}",

View file

@ -206,6 +206,10 @@
{
"type": "schema",
"name": "schema_publish_gui_filter"
},
{
"type": "schema",
"name": "schema_maya_scriptsmenu"
}
]
}

View file

@ -6,7 +6,7 @@ def _nuke_main_window():
"""Return Nuke's main window"""
for obj in QtWidgets.QApplication.topLevelWidgets():
if (obj.inherits('QMainWindow') and
obj.metaObject().className() == 'Foundry::UI::DockMainWindow'):
obj.metaObject().className() == 'Foundry::UI::DockMainWindow'):
return obj
raise RuntimeError('Could not find Nuke MainWindow instance')