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

Maya: add look assigner to pype menu even if scriptsmenu is not available #573

Merged
merged 3 commits into from
Oct 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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