User Guide
Motions 381
Motions
Motions are simply animations that have been predefined in a 3D modeling application. They are
included in the file that’s exported from the 3D application and imported into Director.
Motions can be reused on any model in the 3D cast member, as long as the motion is appropriate
to the geometry of the model. The properties and commands that follow can be used with either
keyframe or bones motions.
Motion properties
Use these properties to work with motions:
whichModel.
meshDeform.
mesh[index].
face[index]
Get Returns a list of three indexes into the vertex,
normal, texture coordinate, and color lists. These
indexes correspond to the corners of the face for the
specified mesh.
whichModel.
meshDeform.
mesh[index].
face[index].
neighbor[index]
Get Returns a list of lists describing the neighbors of a
particular face of a mesh opposite the face corner
specified by the neighbor index
(1,2,3). If the list is
empty, the face has no neighbors in that direction. If
the list contains more than one list, the mesh is
nonmanifold. This is rare. Usually the list contains
four integer values. The first value is for the index
into the
mesh[] list, where the neighbor face lives.
The second is
FaceIndex, the index of the neighbor
face in that mesh. The third is
vertexIndex, the index
within the neighbor face. The last is for
Flipped,
which describes whether the neighbor face is
oriented in the same
(0) or the opposite (1) way as
the original face.
whichModel.
meshDeform.
face.count
Get Returns the total number of faces in the model,
which is equivalent to the sum of all the
model.meshDeform.mesh[index].face.count
properties in a given model.
Property Access Returns
name
Get Name of motion.
duration
Get Time in milliseconds motion needs to play to completion.
type
Get The type of motion with the following values:
#keyFrame: suitable for use with the
Keyframe player
#bones: suitable for use with the Bones player
#none: no mapping has been made for this motion
The default is
#none.
Property Access Description