Loop

A Loop Operator (beOpLoop) is used to process a Behavior several times. This operator handle only one child behavior (added by drag'n drop on the Loop Operator). It can contain built-in Behaviors (not Behavior Operators) as well as Behavior Containers.

    
    
An empty Loop Operator
A Loop Operator containing a Behavior

CREATION

  • Behavior Editor / Behavior Library: 
  • Golaem Menu: Crowd Behaviors / Operators / CrowdBeOp Loop Node
  • MEL command: glmCrowdBeOpLoopCmd;

CONFIGURATION

Loop Attributes

Loop Attributes of a Loop Operator
Loop Mode

Define the mode to use to run the Loop Operator:

  • While (default value): Evaluate the Loop Trigger, then run the contained Behavior according to its Start and Stop Triggers. The process is looped until the loop condition was reached.
    LoopOperator in While Loop Mode
  • Do While: Run the contained Behavior according to its Start and Stop Triggers at first, then evaluate the Loop Trigger. The process is looped until the loop condition was reached.
    LoopOperator in Do While Loop Mode
  • For: Run the contained Behavior according to its Start and Stop Triggers, then decrease the Loop count value related. The process is looped until the count number was reached.
    LoopOperator in For Loop Mode, with a count of 4
Trigger

The related condition, e.g. the Trigger to evaluate in order to stop the loop (click on  to select this Trigger in Maya). This Trigger is only available in the While/Do While Mode.

Count The related number of loop to perform with the For Mode.