The following methods are associated with 3ds Max’s main toolbar:
Enables or disables the Undo icon.
In 3ds Max 2010 and higher, the Undo icons are no longer on the Main Toolbar, but are still affected by this method. When the argument is false, the Undo and Redo icons will cause no action if pressed.
Opens the standard 3ds Max Select By Name dialog allowing users to select objects.
Returns false if the user cancels out of the Select by Name dialog, true otherwise.
See also Picking Scene Nodes by Name for a MAXScript method with more control over the filtering and display of the dialog.
Set scale mode to Uniform Scale.
Set scale mode to Non-uniform Scale.
Sets the Reference Coordinate System.
Providing a node as argument is equivalent to using the "Pick" option of the drop-down list in the UI.
Name | Notes |
---|---|
#view | View Reference Coordinate System |
#screen | Screen Reference Coordinate System |
#world | World Reference Coordinate System |
#parent | Parent Reference Coordinate System |
#gimbal | Gimbal Reference Coordinate System |
#local | Local Reference Coordinate System |
#grid | Grid Reference Coordinate System |
#working_pivot | Working Pivot Reference Coordinate System |
Get and set the Reference Coordinate System.
Name | Notes |
---|---|
#hybrid | View |
#screen | Screen |
#world | World |
#parent | Parent |
#local | Local |
#object | Pick object or Grid - not valid for setRefCoordSys() |
Enables or disables the Reference Coordinate System drop-down list.
Get and set the Coordinate System Center.
Name | Notes |
---|---|
#local | Use Pivot Point Center |
#selection | Use Selection Center |
#system | Use Transform Coordinate Center |
Enables or disables the Coordinate System Center icon.
Sets Coordinate System Center to Pivot Point Center.
Sets Coordinate System Center to Selection Center.
Sets Coordinate System Center to Transform Coordinate Center.
This method reflects the Coordinate System Center state.
If it is set to Pivot Point Center then this method returns #individual otherwise #all .
Set the specified tool buttons on or off.
This method does not put into the mode, it just changes the state of the tool button.
This method does not change the state of any button other than the specified button.
To set the actual tool mode, please see toolmode.commandmode
Name | Notes |
---|---|
#select | Select button on/off |
#move | Move button on/off |
#rotate | Rotate button on/off |
#uscale | Scale button on/off - doesn’t change scale type |
#nuscale | Scale button on/off - doesn’t change scale type |
#squash | Scale button on/off - doesn’t change scale type |
Returns whether the specified tool button is on or off as a <boolean> value.
To get the actual tool mode, please see toolmode.commandmode
Name | Notes |
---|---|
#select | Returns True if the Select button is on |
#move | Returns True if the Move button is on |
#rotate | Returns True if the Rotate button is on |
#uscale | Returns True if any of the Scale button states is on |
#nuscale | Returns True if any of the Scale button states is on |
#squash | Returns True if any of the Scale button states is on |
The following methods deal with the Named Selection Set drop-down list. These methods are not intended for casual usage.
Clears the edit field of the Named Selection Set drop-down list.
Does not deselect the currently selected objects.
Clears the named selections from the Named Selection Set drop-down list.
The named selection sets still exist, they just don’t show in the drop-down list.
This command can be dangerous to use unless you are in Sub-Object mode in the Modify panel, as there is not a direct method to rebuild the Named Selection Set list.
When in Sub-Object mode in the Modify panel, the namedSelSetListChanged() method will rebuild the list.
When in Sub-Object mode in the Modify panel, this method will rebuild the named selection set list.
Sets the edit field of the Named Selection Set drop-down list to the specified string.
This method not change the current selection set or add the specified string to the named selection set list.
Appends the specified string to the Named Selection Set drop-down list.
This method not change the current selection set.
Modifiers in 3ds Max use this method to add sub-object named selection sets to the Named Selection Set drop-down list.
This is done whenever the selection level changes.
The following 3ds Max system global variables are associated with the Main Toolbar:
Lets you get and set whether to use a constant Reference System for the Move, Rotate, and Scale tools.
A Boolean value - true if Constant is on, false if off.
This variable matches the Constant check box in Customize menu > Preferences > General > Reference Coordinate System.
Get/set the 3ds Max command mode.
The value of the command mode is a <name> value if the command mode is a recognized command mode, otherwise the return value is an integer value.
The recognized command modes are:
Name | |
---|---|
#SELECT | |
#MOVE | |
#ROTATE | |
#NUSCALE | |
#USCALE | |
#SQUASH | |
#VIEWPORT | |
#HIERARCHY | |
#CREATE | |
#MODIFY | |
#MOTION | |
#ANIMATION | |
#CAMERA | |
#NULL | |
#DISPLAY | |
#SPOTLIGHT | |
#PICK |
When setting the 3ds Max command mode, only the following command modes are valid:
Name | |
---|---|
#SELECT | |
#MOVE | |
#ROTATE | |
#NUSCALE | |
#USCALE | |
#SQUASH |
Get the 3ds Max command mode as Integer ID.
Get/set the 3ds Max axis constraints.
The axis constraints values are:
Name | |
---|---|
#X | |
#Y | |
#Z | |
#XY | |
#YZ | |
#ZX |
A read/write variable containing a node value or undefined.
This variable reflects which node, if any, is the current reference coordinate system node.
Assignment to this variable must be a node value.
Get/set the 3ds Max manipulate mode. When true , manipulate mode is active.
The following method affects all toolbars.
Forces an update of all toolbar button states.