Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
add look assigner to pype menu even if scriptsmenu is N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Sep 29, 2020
1 parent d740c17 commit 62ac602
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pype/hosts/maya/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ def add_build_workfiles_item():
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:
Expand All @@ -43,6 +52,7 @@ def add_build_workfiles_item():
"'scriptsmenu' module seems unavailable."
)
add_build_workfiles_item()
add_look_assigner_item()
return

# load configuration of custom menu
Expand Down

0 comments on commit 62ac602

Please sign in to comment.