diff --git a/colorbleed/maya/customize.py b/colorbleed/maya/customize.py index 58f2f6d8a5..8b2dda7540 100644 --- a/colorbleed/maya/customize.py +++ b/colorbleed/maya/customize.py @@ -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", diff --git a/res/icons/workfiles.png b/res/icons/workfiles.png new file mode 100644 index 0000000000..f17c869600 Binary files /dev/null and b/res/icons/workfiles.png differ