Hide\Show Toolbars

Hi!
Maybe someone know how i can hide or show some toolbars ( main and custom) by maxscript? Would like to make on\off button for toolbars

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
delorean1988's picture
delorean1988's picture

cui.showToolbarDisplays the


cui.showToolbar
Displays the Toolbar specified by name.
Returns True on success, False if the toolbar name does not exist.
Available in 3ds Max 2014 and higher.
EXAMPLE:
cui.showToolbar "Brush Presets"

Is it possible to do for the method cui.showToolbar false value? Want to make the on\off button for some toolbars

uiaccessor.closedialog (windows.getchildhwnd 0 "Brush Presets")[1]

This close Brush Presets toolbar only when it is undocked. How can it make same with docked toolbar or first make toolbar floated and then close them?

Found solution

uiaccessor.closedialog (windows.getChildHWND #max "Brush Presets")[1]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.