Attachment : PositionController

Attachment - superclass: PositionController; super-superclass:MAXWrapper - classID: #(-1155013103, -1490074649)

Constructor

attachment ...

Properties

<attachment>.keys : MAXKeyArray

Returns the keys of the controller.

<attachment>.node : Node

Get/set the node the controller is attaching to.

<attachment>.align : Boolean default: true

Fixes the orientation of the attached object to the face where it’s assigned. When this is turned off, the orientation of the attached object is not affected by the orientation of the face on the target object.

<attachment>.manupdate : Boolean default: false

Enables the update button.

Methods

AttachCtrl.getKey <attachment> <index_integer>

Returns the indexed key as a MAXAKey value (NOT MAXKey - see notes below).

AttachCtrl.addNewKey <attachment> <time>

Returns the indexed key as a MAXAKey value (NOT MAXKey - see notes below)

AttachCtrl.update <attachment>

Causes the controller to update if the manual update property is turned on for the attachment controller. This method was previously broken but was fixed in 3ds Max 8.

Notes

Accessing a key of an attachment controller by indexing into the .keys property will return a MAXKey value. The only properties available for a key accessed in this manner are the .time and .selected properties.

Instead, you can use the AttachCtrl.getKey() method which returns a key of class MAXAKey. This class provides access to the attachment controller key specific properties. See Attachment Controller Keys for details and examples.

All the common key functions like deleteKey, selectKeys, movekeys, etc. can be used with Attachment controllers.

See also

MAXKeyArray Values

Attachment Controller Keys

Controller Common Properties, Operators, and Methods

MAXWrapper Common Properties, Operators, and Methods

Value Common Properties, Operators, and Methods