Did you know: Intuiface Academy has a video-based lesson about Triggers & Actions.
Intuiface Composer enables you to select triggers and associate them with a series of actions. This association between triggers and actions is key to the no-code visual programming capability of Intuiface. With it you can create true interactive applications with their own custom behavior and logic.
Triggers are events that occur in your experience. These events can be a user touching the display, the completion of a timer, changes in state of assets, collections and other elements in your experiences or any alert generated by external services accessed via interface assets.
Actions are events you can force to occur in reaction to a trigger. An action can be:
- play a video
- turn a page
- move to another scene
- rotate the display
- execute function xxx exposed by a third party service
- etc.
These actions can apply to any item in the active scene of your experience - such as assets and collections - as well as to any external service or device accessible via an interface asset.
The trigger-action pairing can be translated to an algorithm like this:
WHEN [ target of the trigger ] is [ associated trigger ] --> THEN [ target of the action ] -->[ associated action ]
As an example:
WHEN [ Button Asset ] [Button Asset trigger category] [ is pressed ] --> THEN [ Asset Grid ] [ Asset Grid action category ] --> [ Scroll to an item ]
In other words, when the Button Asset is pressed, the Asset Grid Collection will scroll to the specified item.
Don't hesitate to use this kind of language when you want to communicate with our Support Team! It will make things easier to express and understand for both parties.
To better understand triggers and actions, have a look at the video below:
Triggers
The simplest example of a trigger is when this button is pressed. Another type of trigger is a timer, such as when 5 seconds have elapsed. A third example is when this video reaches its end.
Intuiface has more than 200 different triggers out of the box. Read Triggers overview for more details.
Actions, both local and remote
When "this button is pressed" occurs, an action can be triggered as a result. In fact, one trigger can activate any number of actions, enabling a virtually unlimited range of possibilities to make your experiences livelier and more interactive.
Most actions will apply to elements in the same scene or to interface assets used by the experience. Actions applying to elements in the same scene or to interface assets are called local actions. To understand how to link triggers to actions, read Linking triggers to actions in Composer for more details.
Intuiface has more than 200 actions out of the box. Read Actions overview for more details.
Intuiface also enables experiences to communicate with one another. Triggers in one experience can initiate actions in one or more separate experiences. These actions are called remote actions. To understand how to link triggers to remote actions, read Creating Remote actions in the Composer for more details.
Remote actions are an advanced feature of Intuiface. Please take some time to get familiar with triggers and actions before using them.
Remote actions enable the remote control of experiences over a network (Ethernet or Wi-Fi). Remote actions can be triggered not only by elements in your project but also by any third-party application on the same network. These calls are enabled by a simple URL-based syntax whose formalism is described here. In either case, all you need to know is the name of the target experience or, at the very least, the name of the computer on which the experience is running.
As it is possible for a single trigger to initiate actions in multiple remote experiences at the same time, this enables action synchronization between experiences, such as advancing all experiences at once to the same scene.
For a list of known limitations and recommendations for triggers and actions, visit this page.
Comments
0 comments
Article is closed for comments.