The following methods and system globals are associated with the Modify panel:
Returns true if the Pin Stack button is pressed, false if not pressed or not in Modify panel.
Available in 3ds Max 2010 and higher.
Returns true if the Pin Stack button is enabled, false if not enabled or not in Modify panel.
Available in 3ds Max 2010 and higher.
Sets the Pin Stack button to the specified state as long as the Pin Stack button is enabled.
This method sets the checkbutton/button behavior of the Show End Result icon.
If the boolean parameter is true , the Show End Result button remains pressed, thus behaving as a checkbutton.
If the boolean parameter is false , the Show End Result button will return to the off state after being pressed, behaving as a button.
This method must be used in true / false pairs, as its effect is "sticky" when selecting other objects or modifiers, or when switching away from and back to the Modify panel.
A 3ds Max system global variable that lets you get and set the state of the Show End Result Toggle icon in the Modify panel. It contains a Boolean value of true if Show End Result is on, and false if it is off.
If the boolean parameter is true , allows the user to enter Sub-Object mode for those objects/modifiers that have Sub-Object modes defined. If false , the Sub-Object button is disabled. This method must be used in true / false pairs, as its effect is "sticky" when selecting other objects or modifiers, or when switching away from and back to the Modify panel.
Returns true if the user is allowed to enter Sub-Object mode, false otherwise.
A read-only 3ds Max system global variable that lets you get the number of sub-object levels supported by the object or modifier currently selected in the modifier stack.
If the Modify panel is not open or no objects are selected, the global variable contains the value undefined .
A 3ds Max system global variable that lets you get and set the sub-object level in the Modify panel if it is open.
The value is an Integer of zero or greater up to the number of sub-object levels supported by the currently open modifier, typically in the order shown in the Sub-Object drop-down list.
A subObjectLevel of 0 means sub-object mode is off.
If the Modify panel is not open or sub-object level setting not permitted in the current modifier, the global variable contains the value undefined .
The following methods can also be used to get and set the sub-object level:
Get the subObject level of MAXObject. If MAXObject is a node, this method operates on the base object. This method is applicable to base editables, and select and edit modifiers.
Set the subObject level of MAXObject. If MAXObject is a node, this method operates on the base object. This method is applicable to base editables and select and edit modifiers.
Applies a modifier to the current selection opened in the Modify panel.
It must be used in place of addModifier() in places where the target is a selection or group or where you have the stack open at a particular place in the Modify panel with a sub-object selection active and you want the modifier applied to that selection.
addModifier() adds the modifier separately to each object in the selection or group and does not honor the current active sub-object selection in all cases. See Node Common Properties - Modifier Stack Related Methods for more.
The Modify panel must be open on the selection you want to apply the modifier to, otherwise the function does nothing.
Returns the modifier or base object currently selected in the Modify panel stack.
If the Modify panel is not open, this function returns undefined . Use the max modify mode command to switch to the Modify panel.
Sets the specified object to be the active object in the modifier stack. The Modify panel must be open, otherwise the function does nothing.
If node : is specified, the modifier or base object will be searched only in the specified node. This is typically specified when you know what node to look in, and the modifier or base object is instanced in another node. If the argument is a node, the node keyword argument defaults to that node.
If ui : is set to true , the Command Panel will be switched to Modify mode. The default is false .
Returns the index of the given modifier in the modifier stack for the given node.
This index corresponds to the modifiers position in the <node>.modifiers array.
This function returns undefined if the given modifier is not in the node's modifier stack.
Returns true if Modify panel is open, one or more nodes are selected, and the specified modifier is applicable to all the nodes at their current edit level in the stack.
In 3ds Max 6 and higher, the modPanel.validModifier method will return false if either the node/node collection or modifier/modifier class is 'undefined', or the node collection is empty.