Overview
The event driven model of PRIME allows users to trigger methods of any scene object. The “Triggers List” lists all objects that have commands. These commands may be triggered from any event within the scene, including a Keyframe event in the timeline. The trigger list is also available to the Control Panel controls. The trigger list is available from any “Event” list.
List of Triggers
In the event driven model sometimes it’s difficult to determine which event triggered the condition, Action, script or any other trigger. PRIME has a “Triggered” by list that will show you what events will trigger your Condition, Action, or Script or any other Trigger.
Usually the Lighting Bolt icon on a tool bar will open the “Triggered By” list to show you what will be the trigger.
For example, in the “Condition” Editor:
Clicking on the Lightning bolt will bring up the “Triggered By” dialog showing what event will trigger “Condition1” in this example: In this example it shows that the “Text1 TextChanged” event is the event that will trigger “Condition1”. Multiple events could hooked up to the same trigger.
For Timeline Actions there is a “Triggered by” button. The label also shows the number of events that could trigger the Action:
Timeline triggers
Triggers can be applied to the Scene Group, Scene Objects and Resources via the Properties Pane.
To add a Trigger to a scene object, first add a keyframe to the timeline then select a Trigger or multiple Triggers from the Triggers list in the Keyframe Properties.
To add Triggers to the Scene Group use the command sequence in the properties pane.
Timeline triggers can not be added to Expressions, Parameters Conditions and Replaceables
Control Panel triggers
- Triggering C# Scripts: C# Script functions can be triggered from the “Triggers List”