Hello everyone,
I am looking for a way to close/reopen all trays and menus in Zbrush at the click of a button/switch.
Say for instance I have my Floating Menu and Right tray opened. I press a Hotkey/Button/Switch and my Zscript hides these 2 elements. When I press the hotkey again, I want the same elements to reappear.
I have managed this to a point for the Floating Menu as this changes value when it’s turned on/off using the [IGet] command, but that doesnt work for the left and right tray because both of them have the same ID = 0 and they don’t apprear to have any Height or Width.
here is the code for the Floating Menu Toggle.
[VarDef,center,0]
[ISubPalette, “ZScript:Misc Utilities”,0]
[ISwitch,“ZScript:Misc Utilities:ClickMe”, 1, “Info text”,
[VarSet,center,[IGet,5392]]
[if,center = 1,
[IUnPress,5392]
,//else
]//end if statement
,//switch
[if,center=1,
[IPress,5392]
,//else
]//if statement end
Please excuse the lack of knowlede in Zscripting I am a beginner.
Thanks for the help.