mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #221 from BigRoy/PLN-74
Add Work Files app as icon in toolbar in Maya
This commit is contained in:
commit
ad3ef0a641
2 changed files with 13 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ def override_toolbox_ui():
|
|||
|
||||
import avalon.tools.cbsceneinventory as inventory
|
||||
import avalon.tools.cbloader as loader
|
||||
from avalon.maya.pipeline import launch_workfiles_app
|
||||
|
||||
# Ensure the maya web icon on toolbox exists
|
||||
web_button = "ToolBox|MainToolboxLayout|mayaWebButton"
|
||||
|
|
@ -97,6 +98,18 @@ def override_toolbox_ui():
|
|||
background_color = (0.267, 0.267, 0.267)
|
||||
controls = []
|
||||
|
||||
control = mc.iconTextButton(
|
||||
"colorbleed_toolbox_workfiles",
|
||||
annotation="Work Files",
|
||||
label="Work Files",
|
||||
image=os.path.join(icons, "workfiles.png"),
|
||||
command=lambda: launch_workfiles_app(),
|
||||
bgc=background_color,
|
||||
width=icon_size,
|
||||
height=icon_size,
|
||||
parent=parent)
|
||||
controls.append(control)
|
||||
|
||||
control = mc.iconTextButton(
|
||||
"colorbleed_toolbox_loader",
|
||||
annotation="Loader",
|
||||
|
|
|
|||
BIN
res/icons/workfiles.png
Normal file
BIN
res/icons/workfiles.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 205 B |
Loading…
Add table
Add a link
Reference in a new issue