add look assigner to pype menu even if scriptsmenu is N/A

This commit is contained in:
Ondrej Samohel 2020-09-29 13:32:59 +02:00
parent d740c17b91
commit 62ac602985
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7

View file

@ -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