07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling action<br />

Removing a motion from the playList<br />

You can use two commands to remove a motion from the playList<br />

model.motionsPlayer.playNext() removes the motion that is currently playing, and starts playing the next motion<br />

in the playList.<br />

model.motionsPlayer.deleteLast()removes the motion that is at the end of the playList. If there is only one<br />

motion on the playList, it will stop that motion as it is playing.<br />

You can only remove motions from the beginning or the end of the playList. If you need to remove a motion from the<br />

middle, you will need to use deleteLast() multiple times until the unwanted motion has been removed. You will<br />

then have to use queue() to replace the desired motions that you deleted earlier.<br />

Motion blending<br />

If model.motionsPlayer.autoBlend is TRUE, an ending motion blends smoothly into the next motion using the<br />

model.motionsPlayer.blendTime property to determine how long the blend must be. You can control this manually<br />

by setting autoBlend to FALSE and using model.motionsPlayer.blendFactor to control the blend frame by frame.<br />

Animation properties<br />

The #keyframePlayer and #bonesPlayer modifiers share many properties and methods.<br />

model.motionPlayer.playing() indicates whether a model is executing a motion.<br />

model.motionPlayer.playlist is a linear list of property lists containing the playback parameters of the motions that<br />

are queued for a model.<br />

model.motionPlayer.currentTime indicates the local time, in milliseconds, of the currently playing or paused<br />

motion.<br />

model.motionPlayer.playRate is a number that is multiplied by the scale parameter of the play() or queue()<br />

command to determine the playback speed of the motion.<br />

model.motionPlayer.playlist.count returns the number of motions currently queued in the playlist.<br />

model.motionPlayer.currentLoopState indicates whether the motion plays once or repeats continuously.<br />

model.motionPlayer.autoBlend indicates whether the modifier creates a linear transition to the currently playing<br />

motion from the motion that preceded it.<br />

model.motionPlayer.blendTime indicates the length of the transition created by the modifier between motions<br />

when the modifier’s autoblend property is set to TRUE.<br />

model.motionPlayer.blendFactor indicates the degree of blending between motions when the modifier’s autoBlend<br />

property is set to FALSE.<br />

model.motionPlayer.positionReset indicates whether the model returns to its starting position after the end of a<br />

motion or each iteration of a loop.<br />

model.motionPlayer.rotationReset indicates the rotational element of a transition from one motion to the next, or<br />

the looping of a single motion.<br />

model.motionPlayer.rootLock indicates whether the translational component of the motion is used or ignored.<br />

model.motionPlayer.lockTranslation indicates whether the model can be displaced from the specified planes.<br />

Animation Methods<br />

model.motionPlayer.pause() halts the motion currently being executed by the model.<br />

Last updated 8/26/2011<br />

272

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!