ZBrushCentral

Create Clickable Icon That Opens Layers Automatically??

Hi there. I’m wondering if it is possible to create a custom/clickable icon that automatically opens up the Layers pallet that I can use in my Custom UI Layout?
Thanks!

Hi, yes that can be done. Attached is a macro. Included is a PSD file as a guide for the icon.

Save both the macro and the PSD to the ZBrush 2018_1\ZStartup\Macros\Misc\ folder and press Macro>Reload All Macros.

The button will show the layers palette if the Tool palette is docked in either the left or right tray. If the Tool palette isn’t in either tray then it will show at the cursor. (It’s not possible to script it to move to the tray.)

If you want to have the layers menu toggle open and closed then just change the macro code to this:

[IButton,???,“Show the Layers menu”,
[If,[IExists,Tool:Layers],
[IShow,Tool]
[IClick,Tool:Layers]
]
,0.3,“B-icon.psd”,0.3]

ShowLayers.zip (5.2 KB)

HTH,ShowLayers.zip (5.2 KB)

Works perfectly…thanks Marcus! :smiley: