The CUI Struct provides methods and 3ds Max system globals related to the loading and saving of custom user interface files and the management of custom user interface components and modes.
The following methods provide access to Custom User Interface (CUI) files:
Returns the directory of the currently active CUI file as a string.
Returns the currently active CUI file name as a string.
Sets the currently active CUI file to the specified file name.
Saves the current CUI configuration data to the active .cui file
Saves current CUI configuration data to the specified file. The specified file is made the current CUI file.
Loads the CUI configuration data from supplied file. The specified file is made the current CUI file.
cui.RegisterDialogBar <RolloutFloater_or_Rollout> [minSize:<Point2>] [maxSize:<Point2>] [style:<Array>]
This method registers a MAXScript window as a dockable CUI window in MAX.
This method un-registers a dockable MAXScript window.
See cui.RegisterDialogBar and cui.UnRegisterDialogBar for details.
This method docks a registered dialog bar to the specified docking area.
This method will float a registered dialog bar.
See cui.DockDialogBar and cui.FloatDialogBar for details.
This method returns the current dock state of the registered dialog bar.
See cui.getDockState for details.
This 3ds Max system global variable lets you get and set whether the command panel is displayed or not.
See Command Panels for details.
cui.showToolbar <string>
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.
Returns True of expert mode is on, False if it is off.
This method sets the title bar of the main 3ds Max window to the specified string.