822
Chapter 14: Properties
See also
on keyDown
,
keyUpScript
,
mouseDownScript
,
mouseUpScript
keyframePlayer (modifier)
Syntax
member(
whichCastmember
).model(
whichModel
).\
keyframePlayer.
keyframePlayerModifierProperty
Description
3D modifier; manages the use of motions by models. The motions managed by the
keyframePlayer
modifier animate the entire model at once, unlike Bones player motions, which
animate segments of the model called bones.
Motions and the models that use them must be created in a 3D modeling program, exported as
W3D files, and then imported into a movie. Motions cannot be applied to model primitives
created within Director.
Adding the
keyframePlayer
modifier to a model by using the
addModifier
command allows
access to the following
keyframePlayer
modifier properties:
•
playing
indicates whether a model is executing a motion.
•
playList
is a linear list of property lists containing the playback parameters of the motions
that are queued for a model.
•
currentTime
indicates the local time, in milliseconds, of the currently playing or
paused motion.
•
playRate
is a number that is multiplied by the
scale
parameter of the
play()
or
queue()
command to determine the playback speed of the motion.
•
playlist.count
returns the number of motions currently queued in the playlist.
•
rootLock
indicates whether the translational component of the motion is used or ignored.
•
currentLoopState
indicates whether the motion plays once or repeats continuously.
•
blendTime
indicates the length of the transition created by the modifier between motions
when the modifier’s
autoblend
property is set to
TRUE
.
•
autoBlend
indicates whether the modifier creates a linear transition to the currently playing
motion from the motion that preceded it.
•
blendFactor
indicates the degree of blending between motions when the modifier’s
autoBlend
property is set to
FALSE
.
•
lockTranslation
indicates whether the model can be displaced from the specified planes.
•
positionReset
indicates whether the model returns to its starting position after the end of a
motion or each iteration of a loop.
•
rotationReset
indicates the rotational element of a transition from one motion to the next,
or the looping of a single motion.
Note:
For more detailed information about these properties, see the individual property entries.
The
keyframePlayer
modifier uses the following commands:
•
pause
halts the motion currently being executed by the model.
•
play()
initiates or unpauses the execution of a motion.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...