Actions are quick shortcuts designed to speed up your workflow and make creating AR effects easier.
Each action takes a common process and adds it to your project with just one or two clicks, by creating simple patch graphs or adding several objects to the Scene panel at the same time.
For example, you can use actions to place an object on a specific part of the face or animate it.
Spark AR Studio currently has actions for scene objects and audio files.
To add an action:
Choose the action you want to add from the menu:
Select the object in the Scene panel to add actions through the Inspector.
Actions are available for:
This action uses animation patches to move an object in different ways.
Below we’ve selected Spin:
The following patches have been added to the Patch Editor:
Edit the patches to customize the animation. Change the:
Below we've selected Nose:
A face tracker has been added to the Scene panel, with the object parented under it. A series of patches have been added to the Patch Editor, positioning the object on the nose:
Adding this action will make an object visible through the back camera when a flat surface is detected.
This is because it's now a child of the plane tracker in the Scene panel.
Select an audio clip in the Assets panel to add actions in the Inspector.
A speaker and audio playback controller will be added, rendering the audio file in the effect. The audio playback controller will be set to play the audio file once when the effect opens.
A speaker and audio playback controller will be added, rendering the audio file in the effect. The audio playback controller will be set to play the audio file again and again on a loop from when the effect opens.