9

1262 Chapter 14: character studio
Range Display
After you synthesize the Master
Motion Clips, displays delegates minimum,
average, and maximum heading velocity.
MinSet a minimum heading rate value for the
range.
Max—Set a maximum heading rate value for the
range.
Unique—Choose Unique to have the motion
sy nthesis eng ine activate the clip when the
delega tes heading rat e matches a specific value,
optionally with a rising, falling, or constant value
before or after the specified value.
Value—Set a unique heading rate value.
In/Out—These r adio buttons let you specify the
behavior of the par ameter before and after the
unique value is met.
Anythi ng—Heading velocity before or after the
target value is not relevant.
Decreas ing—Heading velocity decreases before
or after it reaches the target value.
Co nstantHeading velocity before or after the
target value is constant.
Increasing—Heading velocity increases before
or after it reaches the target value.
Scale Playback Speed group
These settings let you scale the rate at which the
animationisplayed,dependingupontheheading
velocity of the delegate. By default, when S cale
Animation is off, the object animation will always
play at its normal rate. If you turn it on, you
canthensetaBaseHeadingRate,atwhichthe
animation should play at its normal rate, plus a
percentage to specify how much the animation rate
is modified by the ac tua l delegate heading velocity.
Scale AnimationScales the clip’s animation based
on heading velocity.
Percentage—Specify how much to alter the
play back speed based upon the difference between
the delegate’s heading velocity and the Base
Heading Rate setting.
The formula used is this:
Animation Speed change % = (current speed/Base
Heading Rate -1 ) x Percentage %
For example, if a delegate’s heading velocity is 50
percent above its base heading rate, and the Scale
Percentage value is 50, then the play back speed is
scaled up by 25 percent.
Base Heading Rate—Specifies the delegate heading
velocity at which the animation should be pla yed
back at its normal rate.
Scr ipt Panel
Select a Crowd helper. > Modify panel > Global Clip
Controllers rollout > New > Choose GlobalClip objec t.
> Select object in list. > Edit > Synthesis dialog > State
panel > New State > Edit Properties > Clip S tate dialog >
Script Panel
Track View > Global Tracks > Block Control > GlobalClip
Properties > Synthesis dialog > State panel > New State >
Edit Properties > ClipState dialog > Script Panel
The script state option lets you create a MAXScript
script that ta kes two par ameters: node and time.
The script t ypically tests one or more va lues, and
then returns 1 if the condition (the result of the
test)istrueor0ifitsfalse.Thisresultdetermines
whether or not the state is to be activated.
Scripts used by the clip controller are similar
to those used by the cognitive controller (page
2–1206), with the exception that a special
time-related statement is required.
In the following sample script, "del" is the
delegate’s node, and "t" is the ti me. T he name of
the scripted function, "stoppedScript," would also
need to be entered into the name field in the Script
panel of the ClipState dialog. Unlike cognitive