mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
nuke: fix tab
This commit is contained in:
parent
a7aff0e50c
commit
71c2458d6a
1 changed files with 19 additions and 19 deletions
|
|
@ -2726,29 +2726,29 @@ def recreate_instance(origin_node, avalon_data=None):
|
||||||
|
|
||||||
|
|
||||||
def add_scripts_menu():
|
def add_scripts_menu():
|
||||||
try:
|
try:
|
||||||
from scriptsmenu import launchfornuke
|
from scriptsmenu import launchfornuke
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.warning(
|
log.warning(
|
||||||
"Skipping studio.menu install, because "
|
"Skipping studio.menu install, because "
|
||||||
"'scriptsmenu' module seems unavailable."
|
"'scriptsmenu' module seems unavailable."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
# load configuration of custom menu
|
# load configuration of custom menu
|
||||||
project_settings = get_project_settings(os.getenv("AVALON_PROJECT"))
|
project_settings = get_project_settings(os.getenv("AVALON_PROJECT"))
|
||||||
config = project_settings["nuke"]["scriptsmenu"]["definition"]
|
config = project_settings["nuke"]["scriptsmenu"]["definition"]
|
||||||
_menu = project_settings["nuke"]["scriptsmenu"]["name"]
|
_menu = project_settings["nuke"]["scriptsmenu"]["name"]
|
||||||
|
|
||||||
if not config:
|
if not config:
|
||||||
log.warning("Skipping studio menu, no definition found.")
|
log.warning("Skipping studio menu, no definition found.")
|
||||||
return
|
return
|
||||||
|
|
||||||
# run the launcher for Maya menu
|
# run the launcher for Maya menu
|
||||||
studio_menu = launchfornuke.main(title=_menu.title())
|
studio_menu = launchfornuke.main(title=_menu.title())
|
||||||
|
|
||||||
# apply configuration
|
# apply configuration
|
||||||
studio_menu.build_from_configuration(studio_menu, config)
|
studio_menu.build_from_configuration(studio_menu, config)
|
||||||
|
|
||||||
|
|
||||||
def add_scripts_gizmo():
|
def add_scripts_gizmo():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue