Tutorial: make an idle animation

You will animate a four-second loop in which the head sways gently and the eyes blink, and export it as a motion in the Idle group, the group apps play while nothing else happens. You need the rig from Rig a head turn, or any project with ParamAngleX bound to the face. A body turn (ParamBodyAngleX) and a breathing parameter (ParamBreath) with something bound to them make the loop livelier, but the tutorial works without them.

Create the scene

  1. Switch to the Animate stage in the stage bar.
  2. In the Scenes panel, press New scene. The new scene runs at 30 fps for 120 frames (four seconds), and its settings open under the list. Type Idle into Name.
  3. In the Timeline toolbar, press + Track and choose Model. A model track plays the project’s own rig; it unfolds into one row per parameter and part.

The Scenes panel with a new scene.

A scene’s frames run from 0 to its duration, both included, so this scene has a key position at frame 0 and one at frame 120, four seconds later. For a loop, the pose at 120 must equal the pose at 0: the player jumps from the last frame straight back to the first.

Key the sway

The Parameters panel sits left of the timeline in this stage. Keys go on the model track at the playhead.

  1. Put the playhead on frame 0: type 0 into the frame field in the timeline toolbar, or press Home with the timeline focused.
  2. Set Angle X to −5 with its slider (and the body turn, ParamBodyAngleX, to −2 if you have it).
  3. Press Key in the timeline toolbar (I). It keys every parameter you moved, and every parameter that already has a curve.
  4. Go to frame 60, set Angle X to 5 (the body turn to 2) and press Key again.
  5. Go to frame 120, set the values back to −5 (−2) and key them.
  6. Turn on Loop (the loop button next to the frame field) and press Space to play.

The Timeline with a model track and a key at frame 0.

Keep idle values small: five degrees out of the head’s thirty is enough to look alive without looking busy. Because the body follows the head with a smaller swing, the motion reads as one movement rather than a head on a stick.

Shape the timing in the Curves panel

Select the Angle X row in the timeline; the Curves panel draws its curve.

New keys are Bezier keys with flat handles (the scene’s New parameter keys setting, Editor default (Bezier ease)), so the head already slows to a stop at each key. That suits the turning points of a sway. To make the head linger on one side, drag that key’s handles out to stretch the slow part. Smooth replaces the selected keys’ handles with automatic ones that keep the speed continuous through each key; use it for keys in the middle of a movement, not at its ends.

The Curves panel.

Restricted handles in the Curves toolbar (Restricted Bezier handles in the scene settings) fixes every handle at a third of its segment, as motion3’s AreBeziersRestricted flag requires. Leave it off unless the target app needs it; choosing the Unity SDK target version turns it on.

Add blinking and breathing

Select the model track and look at Effects in the Track panel.

  1. Tick Eye blink. It drives the parameters tagged Eye blink in the first tutorial (or ParamEyeLOpen and ParamEyeROpen) every Interval (s), 4 by default, with the closing, closed and opening times below it. The eyes blink while the scene plays.
  2. If you have a breathing parameter, press Add next to Breath and choose it (the editor picks ParamBreath when the project has it). Breath adds (Offset + Peak × a sine wave of period Cycle (s)) × Weight to the parameter. So that the breathing loops with the scene, set Cycle (s) to a length that divides the scene, such as 4 or 2, instead of the default 3.2345.

The Track panel with the Eye blink, Lip sync and Breath effects.

These effects are calculated while the scene plays; they are not keys. What the export keeps:

  • In the runtime package, the blink is written into the motion as its eye-blink curve, and breathing is left out. This is what you want for most apps: apps built like the Cubism SDK samples, and the editor’s Preview, add their own breathing on top of any motion, and they stop their automatic blinking while a motion plays.
  • Download motion3.json writes them as the Scenes panel’s Download options say. Tick Bake eye blink, lip sync and breath into parameters there to sample all three into the parameter curves.

Bake hair physics (optional)

If the project has physics, the hair already swings during playback. Apps that run the model’s physics3.json compute those parameters themselves, so you only need this step for apps that play motions without physics.

Press Bake physics… in the Track panel, keep the range at the whole scene and press Bake. The physics output parameters get keys you can edit; keys already in the range are replaced. The simulation starts from rest at the first frame, so the hair is still at frame 0 and moving at frame 120: check the loop point and edit the first and last keys if the jump shows.

Export the motion

In the Scenes panel, under Motion export:

  1. Tick Export with the runtime package. The motion gets the group Idle, the scene’s name as file name, the whole scene as range, and Loop on.
  2. Leave Fade in and Fade out unticked to use the SDK’s default fade of one second.

From now on every runtime package export contains the motion and lists it in model3.json under Idle. Switch to the Ship stage to check it. If the Preview says the project changed since its package was built, press Rebuild from project. The Preview then plays a random Idle motion whenever no other motion runs, the way Cubism SDK apps do. Download motion3.json saves the motion on its own. To render the scene as a video or GIF instead, use Export › Video or images… (see Images and video).

Next

Continue with Export for VTube Studio. The Animation chapter covers scenes, the timeline and the Curves panel in full.