What's New in Director 8.5 > The 3D Cast Member > Motions

 

Motions

A motion is an animation of a model. Motions can be shared by multiple models. A 3D cast member contains a palette of motions that are available to any model in the world.

The following commands and properties can be used to perform basic motion operations:

Command

Function

Returns

motion.count

Returns the number of motion objects included in the cast member.

Integer.

motion(name)

Returns the motion named name.

Returns the motion object named name if it exists. Returns void if the object does not exist.

motion[index]

Returns the motion at the designated position in the palette of available motions.

Returns the motion object at that index number if it exists. Returns void if the object does not exist at that index number.

newMotion(name)

Creates a new motion object.

Returns a new motion object with a unique name. If the name isn't unique, returns a Lingo error.

deleteMotion(name)

Deletes the motion named name. Lingo references to this motion persist but return void.

TRUE (1) if the motion named name exists. FALSE (0) if the motion named name doesn't exist.

deleteMotion(index)

Deletes the motion at the given index. Lingo references to this motion persist but return void.

TRUE (1) if the motion with this index number exists. FALSE (0) if the motion with this index number doesn't exist.