Triggering Multiple Actions via Single Button
It is possible to trigger multiple actions with a single button. To do that:
- Launch the RealityExample, the project shipped with Reality Engine.
- Create the Node Tree as shown in the image above
- Activate the Advanced Preview Monitor (APM) on the
Program
output pin of theMixer
node - Change your camera angle by adjusting the
UserTransform
property values of theUserTrack
node through the GamePad
- You can optionally align the
Particle Control
,Animation Control
, andSpotlight
for better control, as shown above.
- Activate the Actions module and click on the
Create
button, rename it if you like - Select the
Particle Control
node, go to its Functions, right-click on thePlay
property menu circle, select the Timeline - Select the
Animation Control
node, go to its Functions, right-click on thePlay
property menu circle, select the Timeline - Select the
Spotlight
node, go to its Properties, right-click onTurnedon
property menu circle, and select the Timeline - Go to the Actions module:
- Right-click on the
Play
function menu circle of theStart Particles
property group, select the Add Keyframe option - Right-click on the
Play
function menu circle of thePlay/Stop Ball Animation
property group, select the Add Keyframe option - Right-click on the
Turnedon
property menu circle of theLightsettings
property group, select the Add Keyframe option - Save the Action
The action above will trigger all Properties/Functions.
Now:
- Click on the
New Action
button, rename it if you like - Create a reverse version of the Action animation by repeating the same steps explained above except with two differences:
- Click on the
Turnedon
checkbox and deactivate it before you take it to the Action Timeline - Add the
Stop
function ofAnimation Control
node to the Timeline instead of thePlay
function. - Save the Action
- Activate the Form Builder module, click on the
New Form
button, rename it if you like - Drag and drop the Action Play buttons of the first and second animations to Form Area, and customize it if you like by clicking on the Field Setting button
- Save the template Form
- Activate the Playout module, select your template from Playout Template Form Area
- Click on the buttons and check the results via APM