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 />

You cannot create new animations within <strong>Director</strong>. You can however create new motions to map an existing<br />

animation to specific bones in an animated model. However, in <strong>Director</strong> 11.5, there is no method for obtaining the<br />

names of the bones within an animated model. See Motions for more details.<br />

Motions<br />

A 3D cast member can contain a set of motions authored in your 3D-modeling application. Motions are either of the<br />

type #keyframe or #bones. A motion with a type of #none can act as an inactive placeholder. To play back a motion,<br />

use the appropriate modifier.<br />

Play list<br />

The keyframe and bones players manage a queue of motions. The first motion in the play list is the motion that is<br />

currently playing or paused. When that motion finishes playing, it is removed from the play list and the next motion<br />

begins.<br />

Motions on the playList can be blended into each other as they are playing, in which case they will play simultaneously.<br />

See “Motion blending” on page 272 for more details.<br />

Adding a motion to the playList<br />

You can use two commands to add a motion to the playList.<br />

model.motionsPlayer.queue()<br />

model.motionsPlayer.play()<br />

Both queue() and play() accept a series of parameters which allow you to determine where the motion starts playing,<br />

when it ends, whether it loops, and how quickly it plays. See the Scripting Dictionary entries for details.<br />

The following example adds two motions to the playList for the model named “Bronco”:<br />

-- Lingo syntax<br />

vModel = member("3D").model("Bronco")<br />

vModel.bonesPlayer.queue("Buck")<br />

vModel.bonesPlayer.play("Rear")<br />

The queue() command places the named motion at the end of the playList. It will start to play when all the motions<br />

already in the queue have finished playing.<br />

The play() command places the named motion at the beginning of the playList and starts to play it. The motion that<br />

was previously playing is stopped, and pushed back to the second position in the playList.<br />

In the example given above, the Buck motion was placed first in the queue, and then immediately replaced in the first<br />

position by the Rear motion. As a result, the motions play in the order Rear, then Buck. If autoblend were FALSE, the<br />

playList looks like this (edited for clarity):<br />

time 0: [[#name:"Buck", #endTime:813]]<br />

time 1: [[#name:"Rear", #endTime:446], [#name:"Buck", #endTime:813]]<br />

-- The motion Rear now plays<br />

time 447: [[#name:"Buck", #endTime:813]]<br />

-- The motion Rear is finished, so Buck can now play<br />

time 1260: []<br />

-- The motion Buck is now also finished<br />

Motions are removed from the play list automatically when they are complete.<br />

Last updated 8/26/2011<br />

271

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

Saved successfully!

Ooh no, something went wrong!