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:

<integer>getCount()

Returns the number of layers in the controller.

<void>setLayerActive <index>listIndex

listIndex Validated by Validator function

Activates the indexed layer.

<index>getLayerActive()

Returns the index of the current layer.

<void>copyLayer <index>listIndex

listIndex Validated by Validator function

Copies the indexed layer into the clipboard.

<void>pasteLayer <index>listIndex

listIndex Validated by Validator function

Pastes the indexed layer from the clipboard.

<void>deleteLayer <index>listIndex

listIndex Validated by Validator function

Deletes the indexed layer.

<TSTR by value>getLayerName <index>listIndex

listIndex Validated by Validator function

Returns the name of the indexed layer.

<void>setLayerName <index>listIndex <string>name

listIndex Validated by Validator function

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

<control>getSubCtrl <index>index

index Validated by Validator function

Returns the indexed sub-controller.

<float>getLayerWeight <index>index <time>atTime

index Validated by Validator function

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

<void>setLayerWeight <index>listIndex <time>atTime <float>weight

listIndex Validated by Validator function

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

<bool>getLayerMute <index>index

index Validated by Validator function

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

<void>setLayerMute <index>listIndex <bool>mute

listIndex Validated by Validator function

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

<void>collapseLayer <index>listIndex

listIndex Validated by Validator function

Collapses the indexed layer.

<void>disableLayer()

Disables layers by removing all layer information from the track.

See also

Layer Controllers

Interface: AnimLayerManager