
378
Chapter 16: Working with Models and Model Resources
Keyframe player properties
Use these properties to work with keyframe animations:
Property
Access
Description
Returns
whichModel
.
keyframePlayer.
playing
Get
TRUE (1)
= playing;
FALSE (0)
= paused.
TRUE (1)
whichModel
.
keyframePlayer.
playList
Get
A linear list of property lists, where each
property list yields the parameters for
the currently playing and queued
animations. For example,
[[#name:
"Walk_rt_turn", #loop: 0,
#startTime: 0, #endTime: 4000,
#scale: 1.0000], [#name: "Walk",
#loop: 1, #startTime: 0, #endTime:
-1, #scale: 1.0000]]
.
Empty list []
whichModel
.
keyframePlayer.
currentTime
Get and set
Current local time of motion at top of
play list, in milliseconds.
0
whichModel
.
keyframePlayer.
playRate
Get and set
A value indicating how quickly or slowly
to play back the motion. For example, a
value of 2.0 doubles the speed of the
motion; a value of 0.5 halves the speed
of the motion. This value is multiplied
by the value of the
playRate
parameter
of the
play
or
queue
method.
1.0
whichModel
.
keyframePlayer.
playList.count
Get
Current number of motions in the play
list.
0
whichModel
.
keyframePlayer.
rootLock
Get and set
TRUE (1)
= root translational
component of the model remains at its
referenced unanimated position (and
therefore cannot disappear offstage).
FALSE (0)
whichModel
.
keyframePlayer.
currentLoopState
Get and set
TRUE (1)
= animation loops;
FALSE (0)
=
animation plays through once.
FALSE (0)
whichModel
.
keyframePlayer.
blendTime
Get and set
Length in milliseconds of the period
when blending takes place between
motions. The
blendTime
property is
linked to motion duration. Motion
blending is disabled if
blendTime = 0
and
autoBlend = TRUE
.
500
whichModel
.
keyframePlayer.
autoBlend
Get and set
If
TRUE
, automatic linear blending (from
0.0 to 100.0) is applied over the blend
time. Otherwise,
blendTime
is ignored,
and the amount of blending is user-
determined by the
blendFactor
property.
TRUE (1)
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...