mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
add look assigner to pype menu even if scriptsmenu is N/A
This commit is contained in:
parent
d740c17b91
commit
62ac602985
1 changed files with 10 additions and 0 deletions
|
|
@ -32,6 +32,15 @@ def deferred():
|
|||
command=lambda *args: BuildWorkfile().process()
|
||||
)
|
||||
|
||||
def add_look_assigner_item():
|
||||
import mayalookassigner
|
||||
cmds.menuItem(divider=True, parent=pipeline._menu)
|
||||
cmds.menuItem(
|
||||
"Maya Look assigner",
|
||||
parent=pipeline._menu,
|
||||
command=lambda *args: mayalookassigner.show()
|
||||
)
|
||||
|
||||
log.info("Attempting to install scripts menu..")
|
||||
|
||||
try:
|
||||
|
|
@ -43,6 +52,7 @@ def deferred():
|
|||
"'scriptsmenu' module seems unavailable."
|
||||
)
|
||||
add_build_workfiles_item()
|
||||
add_look_assigner_item()
|
||||
return
|
||||
|
||||
# load configuration of custom menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue