Value > MAXWrapper > Controllers > Layer Controllers > Interfaces |
The LayerInterface is exposed by all Animation Layer Controllers.
Available in 3ds Max 9 and higher.
Get the number of layers in the controller.
Get/Set the index of the active layer.
Returns the number of layers in the controller.
listIndex Validated by Validator function
Returns the index of the current layer.
listIndex Validated by Validator function
Copies the indexed layer into the clipboard.
listIndex Validated by Validator function
Pastes the indexed layer from the clipboard.
listIndex Validated by Validator function
listIndex Validated by Validator function
Returns the name of the indexed layer.
listIndex Validated by Validator function
Sets the name of the indexed layer to the given string.
index Validated by Validator function
Returns the indexed sub-controller.
index Validated by Validator function
Returns the weigth of the indexed layer at the given time.
listIndex Validated by Validator function
Sets the weigth of the indexed layer at the given time to the specified float value.
index Validated by Validator function
Returns true if the indexed layer is muted, false otherwise.
listIndex Validated by Validator function
Sets the muted state of the indexed layer to the given boolean value.
listIndex Validated by Validator function
Disables layers by removing all layer information from the track.
This example iterates through all the Animation Layers for the selected object, printing their name. It then makes the last layer active.
s = $ ctls = s.position.controller for i = 1 to ctls.count do print ctls[i].name -- set last layer active: ctls.setLayerActive ctls.count