ScriptSpot

Forum topic · Scripts Wanted

Hide\Show Toolbars

By delorean1988 · 2015-07-16

Description

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 (2)

cui.showToolbarDisplays the

delorean1988 · 2015-07-19


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]