add look manager to maya side menu

This commit is contained in:
Milan Kolar 2019-02-20 14:48:42 +01:00
parent fef49c20ef
commit ed4b8f9bdd
3 changed files with 14 additions and 0 deletions

View file

@ -78,6 +78,8 @@ def override_toolbox_ui():
import avalon.tools.cbsceneinventory as inventory
import avalon.tools.cbloader as loader
from avalon.maya.pipeline import launch_workfiles_app
import mayalookassigner
# Ensure the maya web icon on toolbox exists
web_button = "ToolBox|MainToolboxLayout|mayaWebButton"
@ -98,6 +100,18 @@ def override_toolbox_ui():
background_color = (0.267, 0.267, 0.267)
controls = []
control = mc.iconTextButton(
"pype_toolbox_lookmanager",
annotation="Look Manager",
label="Look Manager",
image=os.path.join(icons, "lookmanager.png"),
command=lambda: mayalookassigner.show(),
bgc=background_color,
width=icon_size,
height=icon_size,
parent=parent)
controls.append(control)
control = mc.iconTextButton(
"pype_toolbox_workfiles",
annotation="Work Files",

BIN
res/icons/Thumbs.db Normal file

Binary file not shown.

BIN
res/icons/lookmanager.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB