8

1062 Chapter 14: Character Studio
Note:
See the online
User Reference
for this sample
code.
Inter face
Pri orit y—Sets the transition’s precedence.
When more than one transition tests true, the
software uses the Priority setting to determine
which transition occurs. It performs the transition
with the lowest Priority setting. Thus, for example,
a transition with a Priority setting of 0 takes
precedence over one w ith Priority 1, and so on.
Durati on—The number of frames the software
takes to effect the transition b etween states.
Ease In—Therateatwhichthetransitionbegins.
Default=0.5. Range=0 to 1.0.
Lower values cause a more abrupt transition, while
higher values cause a more gradual t r a nsition.
Ease Out—Therateatwhichthetransitionends.
Default=0.5. Range=0 to 1.0.
Lower values cause a more abrupt transition, while
higher values cause a more gradual t r a nsition.
Note: The sum of the values for Ease In and E ase
Outmustbelessthanorequalto1.0.Thesoftware
won’t let you set a value for either parameter that
would cause the sum to exceed 1.0. To increase
the value of one parameter when its value equals
1.0 minus the other parameter, decrease the other
parameter first.
Tran sition Co nditionThenameoftheMAXScript
function that specifies when/how the transition
is to occur.
This name must also appear at the beginning of the
main function in the script, after "fn". The script
can contain additional functions that are called by
the main function and each other.
Edit MAXScript—Opens an editor window for
editing, saving, and loading the transitions
MAXScript scr ipt.
OK Closes the dialog and implements changes.
Can celCloses the dialog and ignores changes.
B ehav ior R oll out
Create panel > Helpers > Object Type rollout > Crowd >
Setup rollout > New button
Select a Crowd object. > Modify panel > Setu p rollout >
New button
Select a Crowd object. > Modify panel > Setup rollout
> Choose a behavior.
The Behavior rollout appears in the Crowd object
command panel after you first add a behavior to
the scene using the Setup rollout. The rollout’s
full name (for example: Avoid Behavior or Seek
Behavior) depends on the current behavior ,
displayedinthetextboxintheSetuprollout.To
display the rollout for a different behavior, choose
the behavior from the drop-down list.