Driven Attribute Trigger

The Driven Attribute Trigger enables to start or stop a behavior by returning true if any Maya object attribute is successfully compared to a reference value. 

Creation

  • Behavior Editor / Trigger Library: 
  • Golaem Menu: Crowd Triggers / Triggers / CrowdTri DrivenAttribute Node
  • MEL command: glmCrowdTriDrivenAttributeCmd;

Configuration

A Driven Attribute Trigger defines the following specific attributes. For common attributes see Trigger Common Attributes.

Driven Attribute Attributes

Attribute The driven attribute value: the current value of the linked Maya object attribute;
Operator A comparison operator (equal, greater than…)
Value A reference value.

Example

To link a Maya object attribute with the driven attribute:

It can be particularly useful to adapt a behavior to the environment or any event in Maya. E.g. one could create an explosion particle system, link its visibility attribute to a flee behavior. Then, when the explosion object will be displayed, the entities will flee from it.