926
Chapter 14: Properties
playlist
Usage
member(
whichCastmember
).model(
whichModel
).keyframePlayer.playlist
member(
whichCastmember
).model(
whichModel
).bonesPlayer.playlist
Description
3D
#keyframePlayer
and
#bonesPlayer
modifier property; returns a linear list of property lists,
each representing a motion queued for playback by the modifier.
Each property list will have the following properties:
•
#name
is the name of the motion to be played.
•
#loop
indicates whether the motion’s playback should be looped.
•
#startTime
is the time, in milliseconds at which playback of the animation should begin.
•
#endTime
is the time, in milliseconds at which playback of the animation ends or when
the motion should be looped. A negative value indicates that the motion should be played
to the end.
•
#scale
is rate of play for the motion that is to be multiplied by the modifier’s playRate
property to determine the actual speed of the motion’s playback.
The
playlist
property can be tested but not set. Use the
queue()
,
play()
,
playNext()
, and
removeLast()
commands to manipulate it.
Example
The following statement displays the currently queued motions for the model Stroller in the
Message window. There are two currently queued motions: Walk and Jump.
put member("ParkScene").model("Stroller").bonesPlayer.playList
-- [[#name: "Walk", #loop: 1, #startTime: 1500, #endTime: 16000, \
#scale:1.0000, #offset: 0], [#name: "Jump", #loop: 1, \
#startTime: 0, #endTime: 1200, #scale: 1.0000, #offset: 0]]
See also
play() (3D)
,
playNext() (3D)
,
removeLast()
,
queue() (3D)
playRate (3D)
Usage
member(
whichCastmember
).model(
whichModel
).bonesPlayer.playRate
member(
whichCastmember
).model(
whichModel
).keyframePlayer.playRate
Description
3D
#keyframePlayer
and
#bonesPlayer
modifier property; scale multiplier for the local time
of motions being played. This property only partially determines the speed at which motions are
executed by the model.
The playback of a motion by a model is the result of either a
play()
or
queue()
command. The
scale
parameter of the
play()
or
queue()
command is multiplied by the modifier’s
playRate
property, and the resulting value is the speed at which the particular motion will be played back.
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...