mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add look manager to maya side menu
This commit is contained in:
parent
fef49c20ef
commit
ed4b8f9bdd
3 changed files with 14 additions and 0 deletions
|
|
@ -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
BIN
res/icons/Thumbs.db
Normal file
Binary file not shown.
BIN
res/icons/lookmanager.png
Normal file
BIN
res/icons/lookmanager.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Loading…
Add table
Add a link
Reference in a new issue