Layer Controller Interfaces

new.gif NEW in 3ds Max 9: The Layer Interface is exposed by all Animation Layer Controllers.

Layer interfaces:

Interface: layer

Properties:

.count : integer : Read

Get the number of layers in the controller.

.active : index : Read|Write

Get/Set the index of the active layer.

Methods:

getCount()

Returns the number of layers in the controller.

setLayerActive listIndex

listIndex Validated by Validator function

Activates the indexed layer.

getLayerActive()

Returns the index of the current layer.

copyLayer listIndex

listIndex Validated by Validator function

Copies the indexed layer into the clipboard.

pasteLayer listIndex

listIndex Validated by Validator function

Pastes the indexed layer from the clipboard.

deleteLayer listIndex

listIndex Validated by Validator function

Deletes the indexed layer.

getLayerName listIndex

listIndex Validated by Validator function

Returns the name of the indexed layer.

setLayerName listIndex name

listIndex Validated by Validator function

Sets the name of the indexed layer to the given string.

getSubCtrl index

index Validated by Validator function

Returns the indexed sub-controller.

getLayerWeight index

index Validated by Validator function

Returns the weigth of the indexed layer at the given time.

setLayerWeight listIndex

listIndex Validated by Validator function

Sets the weigth of the indexed layer at the given time to the specified float value.

getLayerMute index

index Validated by Validator function

Returns true if the indexed layer is muted, false otherwise.

setLayerMute listIndex mute

listIndex Validated by Validator function

Sets the muted state of the indexed layer to the given boolean value.

collapseLayer listIndex

listIndex Validated by Validator function

Collapses the indexed layer.

disableLayer()

Disables layers by removing all layer information from the track.

See also

Layer Controllers

Interface: AnimLayerManager