2009
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 playback speed is
scaled up by 25 percent.
Base Heading Rate Specifies the delegate heading velocity at which the
animation should be played back at its normal rate.
Script Panel
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 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 takes two
parameters: node and time. The script typically tests one or more values, and
then returns 1 if the condition (the result of the test) is true or 0 if it’s false.
This result determines whether or not the state is to be activated.
Scripts used by the clip controller are similar to those used by the
cognitive
controller
on page 4857, 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 time.
The 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 controller scripts, the statement "at time t" needs to be invoked
because the animation is not running when the synthesis takes place.
fn stoppedScript del t = (
at time t
if del.pos.z < 65 then 1 else 0
)
4954 | Chapter 17 character studio