Animations with Level Sequences

What

Sequence animations let you create complex animations of any object of the scene playing with transform, materials and more.

all_v1.11_skyreal_experience-customization_demo-seq

How

Open Level Sequence

To add a new Level Sequence click on Cinematics -> Add Level Sequence

all_v1.11_skyreal_experience-customization_add-level-sequence

You need set the location of your new sequence inside anywhere inside the Simulation folder. The sequence is automatically opened in the Sequencer tab.

You can load a level sequence in the Sequencer at any time clicking on the Open Level Sequence button in the Details panel.

all_v1.11_skyreal_experience-customization_open-level-sequence

Track object

First you need to add the part you want to track to the sequence. You can drag a part directly from the World Outliner or click on Track and choose the part from the Actor To Sequencer list.

all_v1.11_skyreal_experience-customization_add-actor-level-sequence

You can add as many parts as you want to the sequence. If you have a whole product or sub-product to move, you can set every part to move as a child of the parent SkrSceneNode in the World Outliner. Then, animating the parent will make every part move.

Then you must choose the property you want to track. Most of the time you will track the transform.

all_v1.11_skyreal_experience-customization_tracking-props

Edit Sequence

The sequence is a timeline graduated in frames (the default framerate is 30 fps). It begins at 0 and ends at the red line. You can grab the red line on the top and move it to choose the duration of the sequence.

To animate a part you must add keyframes at specific times to store the value of the tracked property. To add a keyframe click on the button.

all_v1.11_skyreal_experience-customization_add-keyframe

For instance, track the original transform at 0, then move the cursor to another frame, let say 60 (2 seconds), move your part as you want and add a new keyframe. You should get something like this:

all_v1.11_skyreal_experience-customization_first-seq

When the Sequencer is focused, you can play the animation with the space key.

Keyframes interpolation

You may have noticed an acceleration at the beginning and a slow down at the end of the animation. This is because the default interpolation between tracked positions is not linear. To edit the interpolation click on the curve editor.

all_v1.11_skyreal_experience-customization_curve-editor

Here you can edit keyframes, add intermediate keyframes, and change the interpolation method.

all_v1.11_skyreal_experience-customization_linear-interpolation

Trigger Sequence from Blueprint

To start animations in SkyReal in SkyReal you need to trigger them with any event. To do so, you need to call the sequence in the Level Blueprint. (see blueprint animation)

Open the Level Blueprint, add a new Level Sequence Actor variable, compile and select your sequence in the default value field of your variable.

Then add the event you want (for instance the grab button of your controller).

Get the Play (SequencePlayer) action from your sequence and link it the the Pressed pin of the event.

all_v1.11_skyreal_experience-customization_trigger-sequence