3D Lingo Dictionary > O-S > playlist

 

playlist

Syntax

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

This 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(), playNext(), removeLast(), queue()