Interfaces > Core Interfaces > MaxRibbon |
This Core Interface exposes methods to access the appearance of the Ribbon User Interface.
Sets the Ribbon's orientation to horizontal or vertical.
Returns the Ribbon's orientation.
When the argument is true, shows the Ribbon.
When the argument is false, hides the Ribbon.
Returns true if the Ribbon is open, false otherwise.
Loads the Ribbon Configuration from the specified file. The configFile must contain the path.
Saves the Ribbon Configuration to the specified file. The configFile must contain the path. This command saves the configuration in two files, one named [configFile].ribbon, and the other [configFile].xaml. Only the .xaml version is actually used. The configuration contains any user customization and the ribbon's show/hide state, but not its size, position, or docking state.
Resets the Ribbon to its default show/hide state, and discards any user customization. This function does not reset the ribbon's position, size, or docking state.
<void>MaxRibbon.SetRibbonDockState <enum>dockState dockState enums: {#TopDock|#BottomDock|#LeftDock|#RightDock|#Floating}
Sets the Ribbon state according to the enum parameter:
#TopDock - docks the Ribbon to the top of the 3ds Max UI, switching to horizontal layout if necessary.
#BottomDock - docks the Ribbon to the bottom of the 3ds Max UI, switching to horizontal layout if necessary.
#LeftDock - docks the Ribbon to the left of the 3ds Max UI, switching to vertical layout if necessary.
#RightDock - docks the Ribbon to the right of the 3ds Max UI, switching to vertical layout if necessary.
#Floating - undocks and floats the Ribbon.
Returns true if the Ribbon is floating, false if it is docked.