Skip to content

Authoring Tool

  1. Home
  2. Docs
  3. Authoring Tool
  4. Scripts
  5. Frame
  6. Event


This section explains what an Event is, how they are triggered, how to listen for them, etc.


An Event is a declaration that some action has occurred. An Event will be generated by the Motive engine when certain life-cycle actions take place. For example, every time a Frame is closed, each Resource in the Frame emits the Deactivate Event. Alternatively, users can generate a Custom Event using the Custom Event Resource.

Events are useful as a way to trigger Frames and the Resources within. A Frame can have a Precondition that listens for a specific Event. Once this Event is emitted, the Frame’s Precondition will be satisfied, and the Resources within that Frame will begin their processing.

There are two ways of creating an Event Precondition for a Frame. The first method is to create a new Frame, and then select Object Event Condition from the Precondition dropdown. Using this Condition, you can select the Frame and the Event you would like to listen for. If you are listening for a Custom Event, instead use Custom Event Condition and type the name of the Event for which you are listening. The alternative way to create an Event listener is to navigate to the Resource whose Event the Frame will wait upon. Then, in the bottom right hand corner of this Resource, click the blue plus (“+”) symbol and choose the Event for which you want to listen. This will create a new Frame with a Precondition for the Event you selected.


Was this article helpful to you? Yes No

How can we help?

Scroll To Top