User Guide
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.