Interface: AnimLayerManager
This Core Interface exposes the Animation Layer Manager to MAXScript.
Available in 3ds Max 9 and higher.
Properties:
AnimLayerManager.filterActiveOnly: boolean : Read|Write Get/Set the state of the Filter Active Only option.
AnimLayerManager.justUpToActive: boolean : Read|Write Get/Set the state of the Just Up To Active option.
Methods:
<void>AnimLayerManager.showAnimLayersManagerToolbar <boolean>show Show/hide the Animation Layers Manager toolbar. When the argument is true, the toolbar will be displayed. When the argument is false, the toolbar will be hidden.
FOR EXAMPLE
AnimLayerManager.showAnimLayersManagerToolbar true--show the toolbar AnimLayerManager.showAnimLayersManagerToolbar false--hide the toolbar
<integer>AnimLayerManager.enableLayersDlg <&node array>nodes
nodes is In and Out parameter Shows the Enable Anim Layers dialog for the specified objects.
<integer>AnimLayerManager.enableLayers <&node array>nodes pos:<boolean> rot:<boolean> scale:<boolean> ik:<boolean> object:<boolean> customAtt:<boolean> mod:<boolean> mat:<boolean> other:<boolean>
nodes is In and Out parameter
pos default value: true
rot default value: true
scale default value: true
ik default value: false
object default value: false
customAtt default value: false
mod default value: false
mat default value: false
other default value: false Enables the Animation Layers for the specified objects without user interaction via the Enable Anim Layers dialog. The optional keyword parameters can be used to enable or disable animation layers for the given track types.
<boolean>AnimLayerManager.canEnableLayer <maxObject>anim <maxObject>client <index>subNum Returns true if the Animation Layer can be enabled for the specified object and track, false otherwise.
<boolean>AnimLayerManager.enableLayer <maxObject>anim <maxObject>client <index>subNum Enables the Animation Layer for the specified object and track. Returns true on success, false on failure.
<index>AnimLayerManager.getLayerCount() Returns the number of layers.
<index array>AnimLayerManager.getNodesLayers <&node array>nodes
nodes is In and Out parameter Returns an array of indices representing the layers used by the specified nodes.
<void>AnimLayerManager.setLayerActive <index>listIndex
listIndex Validated by Validator function Sets the indexed layer as the current layer.
<void>AnimLayerManager.setLayerActiveNodes <index>listIndex <&node array>nodes
listIndex Validated by Validator function
nodes is In and Out parameter Sets the active nodes for the indexed layer to the by-reference array of nodes.
<index array>AnimLayerManager.getActiveLayersNodes <&node array>nodes
nodes is In and Out parameter Writes the active layers nodes into the by-reference array of nodes. Returns an array of layer indices.
<void>AnimLayerManager.getNodesActiveLayer <&node array>nodes
nodes is In and Out parameter Returns the nodes using the active layer into the by-reference array of nodes.
<void>AnimLayerManager.addLayer <&string>name <&node array>nodes <boolean>useActiveControllerType
name is In and Out parameter
nodes is In and Out parameter Adds a layer with the given name to the nodes specified by the second argument. The third argument controls whether to use the active controller type.
<void>AnimLayerManager.addLayerDlg <&node array>nodes
nodes is In and Out parameter Opens the Add Layer dialog.
<void>AnimLayerManager.deleteLayer <index>listIndex
listIndex Validated by Validator function Deletes the indexed Animation Layer.
<void>AnimLayerManager.deleteLayerNodes <index>listIndex <&node array>nodes
listIndex Validated by Validator function
nodes is In and Out parameter Deletes the indexed Animation Layer from the specified scene nodes.
<void>AnimLayerManager.copyLayerNodes <index>listIndex <&node array>nodes
listIndex Validated by Validator function
nodes is In and Out parameter Copies the indexed Animation Layer from the specified scene nodes.
<void>AnimLayerManager.pasteLayerNodes <index>listIndex <&node array>nodes
listIndex Validated by Validator function
nodes is In and Out parameter Pastes the copied Animation Layer into the specified scene nodes at the indexed position.
<Stringby value>AnimLayerManager.getLayerName <index>listIndex
listIndex Validated by Validator function Returns the name of the indexed Animation Layer.
<void>AnimLayerManager.setLayerName <index>listIndex <Stringby value>name
listIndex Validated by Validator function Sets the name of the indexed Animation Layer to the given string.
<float>AnimLayerManager.getLayerWeight <index>listIndex <time>atTime
listIndex Validated by Validator function Returns the weight of the indexed Animation Layer.
<void>AnimLayerManager.setLayerWeight <index>listIndex <time>atTime <float>weight
listIndex Validated by Validator function Sets the weight of the indexed Animation Layer to the given value.
<boolean>AnimLayerManager.getLayerMute <index>listIndex
listIndex Validated by Validator function Returns the Mute state of the indexed Animation Layer as a boolean value.
<void>AnimLayerManager.setLayerMute <index>listIndex <boolean>mute
listIndex Validated by Validator function Sets the Mute state of the indexed Animation Layer to the given boolean value.
<boolean>AnimLayerManager.getLayerLocked <index>listIndex
listIndex Validated by Validator function Gets the Locked state of the indexed Animation Layer as boolean value.
Available in 3ds Max 2010 and higher.
<void>AnimLayerManager.setLayerLocked <index>listIndex <boolean>locked
listIndex Validated by Validator function Sets the Locked state of the indexed Animation Layer to the given boolean value.
Available in 3ds Max 2010 and higher.
<boolean>AnimLayerManager.getLayerOutputMute <index>listIndex
listIndex Validated by Validator function Returns the Output Mute state of the indexed Animation Layer as a boolean value.
<void>AnimLayerManager.setLayerOutputMute <index>listIndex <boolean>mute
listIndex Validated by Validator function Sets the Output Mute state of the indexed Animation Layer to the given boolean value.
<void>AnimLayerManager.collapseLayerNodes <index>listIndex <&node array>nodes
listIndex Validated by Validator function
nodes is In and Out parameter Collapses theindexedAnimation Layer of the given scene nodes.
<void>AnimLayerManager.disableLayerNodes <&node array>nodes
nodes is In and Out parameter Disables the Animation Layers of the given scene nodes.
<void>AnimLayerManager.animLayerPropertiesDlg() Opens the Layer Properties dialog.
void>refreshAnimLayerPropertiesDlg() Refreshes the Layer Properties dialog.
Available in 3ds Max 2010 and higher.
<void>AnimLayerManager.SetCollapseControllerType <enum>controllerType
controllerType enums: {#Bezier|#Linear|#Default} Sets the Controller Type to collapse to. Corresponds to the radio buttons in the Layer Properties dialog.
<enum>AnimLayerManager.GetCollapseControllerType()
GetCollapseControllerType enums: {#Bezier|#Linear|#Default Returns the Controller Type to collapse to. Corresponds to the radio buttons in the Layer Properties dialog.
<void>AnimLayerManager.SetCollapsePerFrame <boolean>keyable Sets whether to collapse to keys only when possible (false) or to keys per frame (true). Note that this value is the inverse of the checkbox' state in the Layer Properties dialog.
<boolean>AnimLayerManager.GetCollapsePerFrame() Returns whether to collapse to keys only when possible (false) or to keys per frame (true). Note that this value is the inverse of the checkbox' state in the Layer Properties dialog.
<void>AnimLayerManager.SetCollapsePerFrameActiveRange <boolean>activeRange Sets whether to collapse the active range (true) or the user-defined range (false). Corresponds to the radio buttons in the Layer Properties dialog > Per Frame Collapse Range.
<boolean>AnimLayerManager.GetCollapsePerFrameActiveRange() Get whether to collapse the active range (true) or the user-defined range (false).Corresponds to the radio buttons in the Layer Properties dialog > Per Frame Collapse Range.
<void>AnimLayerManager.SetCollapseRange <interval>range Sets the Collapse Range to the given interval value. Corresponds to the value spinners in the Layer Properties dialog > Per Frame Collapse Range.
<interval>AnimLayerManager.GetCollapseRange() Returns the Collapse Range interval value. Corresponds to the value spinners in the Layer Properties dialog > Per Frame Collapse Range.
