From a6c6b1ee2d8e841c02245d3c01441ccf4bfbc39a Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 31 Dec 2018 12:03:08 +0100 Subject: [PATCH] Add Work Files app as icon in toolbar in Maya --- colorbleed/maya/customize.py | 13 +++++++++++++ res/icons/workfiles.png | Bin 0 -> 205 bytes 2 files changed, 13 insertions(+) create mode 100644 res/icons/workfiles.png 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 0000000000000000000000000000000000000000..f17c869600c4deff23b1a556b54676a9b2943413 GIT binary patch literal 205 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5X*aCb)Tz}4y`Tzg_%-XM3KoO>rAiv=M3{STkcma9-o-U3d z6}PTjHsk}De&E~x`DG#^T+J76O!ejvIG|*~EO3O$p+n|C^U{wZh6YYdf7mX?-ev!C w{XRo=gJuHj1(vHK{$`$m_FrdfIX5seOnb>BSjqC?1kh*(Pgg&ebxsLQ00S>Xn*aa+ literal 0 HcmV?d00001