8

1114 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 engine activate the clip when the
delegate’s heading rate matches a specific value,
optionally with a rising, falling, or constant value
before or after the specified v alue.
Value—Set a unique heading rate value.
In/Out—These r adio buttons let you specify the
behavior of the parameter 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 Spe ed group
These settings let you scale the rate at which the
animationisplayed,dependingupontheheading
velocity of the delegate. By default, when Scale
Animation is off, t he 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 mo dified by the actual delegate heading velocit y.
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 use d 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 R ateSpecifies the delegate he ading
velocity at which the animation should be played
back at its normal rate.
Scr ipt Pa nel
Select a Crowd helper. > Modify panel > Global Clip
Controllers rollout > New > Choose GlobalClip object.
> Select object in list. > Edit > Synthesis dialog > State
panel > New State > Edit Properties > Clip State di alog >
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 takes two para meters: node a nd time.
The script typically tests one or more values, 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–1057)
, 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. The name of
the scripted function, "stoppedScript," would also
need to be entered into the name field in the Script
panel of the ClipState d ialog. Unlike cognitive