Clear
Back

Actions in Spark AR Studio

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.

Using Actions

To add an action:

  1. Select the object you want to create the action for in the Scene panel.
  2. Go to the Inspector.
  3. Click the Actions button at the top of the panel.


Choose the action you want to add from the menu:

Actions available

Animate

This action uses animation patches to move an object in different ways.

Choose from:

  • Blink - to make the object appear and disappear by animating the Visibility property.
  • Float - to move the object up and down by animating the Position property.
  • Pulse - to make the object bigger then smaller by animating the Scale property.
  • Spin - to make the object spin by animating the Rotation property.

Below we’ve selected Spin:



The following patches have been added to the Patch Editor:



Edit the patches to customize the animation. Change the:

  • Start and End values in the Transition patch to set where the object moves between, or the Curve value to set the pacing of the movement.
  • Duration value in the Loop Animation patch to speed up or slow down the movement. You can also mirror the movement by checking the box next to Mirrored.

Position on face

This action will add a face tracker and face landmark patches to your project to position the object on the face. Choose from a selection of facial positions, for example the chin or nose.

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:

Place an object in the world

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.

Objects with actions available

Actions are available for the following features:

  • 3D objects
  • Planes
  • Vector objects
  • Spot lights, ambient and directional lights
  • Rectangles
  • 2D and 3D text
  • Null objects
  • Particle systems

Next steps

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Frequently asked questions

Have a specific question? Maybe it's been answered.


Read FAQs
Was this document helpful?