Animating in a Layer

To add a layer of animation to an object, the object needs to already have animation on it in the base layer. The base layer is the main animation layer on the object, which can be either fcurves or an action clip in the mixer.

When you animate in a layer, you can set keys using the same workflow as you would normally in Softimage. The keys that you set in the animation layers are added on top of the base layer as an offset.

For example, let’s say you have a mocap clip in the mixer of a character running and jumping on a flat surface. Now the director wants the character to jump off an elevated platform and land on a surface far below. With layering, you can simply set keys for the character taking off with a big leap and landing at a different location. This offset is added on top of the mocap clip without ever touching its original data.

Animation layers are like applying offset keys in the mixer, except that using animation layers is much faster and more intuitive than using the mixer. You don’t need to save your animation in a clip and create clip effects for it in the mixer. As well, you can see where the offset keys are placed for each layer because they’re displayed in the timeline.

Animation Layers and the Animation Mixer

Animation layers are actually managed and controlled in the animation mixer, but you don’t need to access the mixer for working with the layers. This means that you don’t need to turn your animation into action clips in order to blend animation or add offsets, which makes for a faster and more natural animation workflow.

When you create an animation layer, a layer source and layer clip of the same name is automatically created for it in the current model’s animation mixer. You can find the layer source in the models’ Mixer node, under Sources > Animation. Animation layers are essentially a group of clips in the mixer. Layers are stacked bottom to top and the resulting animation is the addition of their animations.

The animation layer has only one clip active at a given time. This means that the layer always matches the scene’s timeline (it’s in global time). As a result, you can’t use a layer clip in the same way as you would an action clip in the animation mixer; for example, you can’t scale, move, trim, cycle, or timewarp a layer clip. You can, however, set the layer clip’s weight—see Editing the Layer’s Animation.

Animation Layers and Expressions

You can’t use expressions or linked parameters in an animation layer, but you can add a layer of keys on top of expressions or linked parameters that are in the base layer.

To do this, go to a frame where you want the layer key to be and set a zero key in the animation layer (see Setting Zero (Anchor) Keys for Blending the Animation). You can now move the object to where you want because it is being driven by the layer instead of the expression, and continue to set keys in the animation layer as you like.

Setting Keys in an Animation Layer

When you animate in a layer, you can set keys using the same workflow as you would when you normally set keys in Softimage. The keys that you set in the animation layer are added on top of the base layer as an offset.

While you’ll probably add keys in layers mostly on an object’s scaling, rotation, and translation (SRT) parameters, you can set keys in layers on any type of animatable parameter (except for parameters in the animation mixer, such as a layer clip’s weight).

To set keys in an animation layer

1. Select an object that already has animation in the base layer. The animation can be either fcurves or an action clip in the mixer.

2. Create a new layer or select an existing layer (see Creating Animation Layers).

When you do so, the timeline goes blank so you can add a new layer of animation.

3. Transform the object or change the object’s animated parameters, and set a key as you would normally. This creates an offset from the base layer’s animation.

As soon as you set a key, a few things happen:

- A blue key appears in the timeline. The keys are blue to remind you that you’re animating in a layer, and not the base layer where the keys are red.

- A little yellow dot is added to the corner of the animation icon for the animated parameter.

 

4. Keep on setting keys as you like in this layer, or select another layer and set keys there in the same way.

5. To edit the layer’s fcurves, you can use the fcurve editor as normal—see Editing the Layer’s Animation.

Setting Zero (Anchor) Keys for Blending the Animation

In addition to adding an offset to the base layer’s animation, you can set zero keys (sometimes known as anchor keys) to blend in the offset in a layer over a range of frames.

For example, let’s say you have some animation on a character, but his arm passes through his body as he reaches for his laser gun. To correct the arm passing through the body, you place zero keys at frames on either side of the problem area, go to the frame between these keys where you need adjust the arm, and then key its correct position.

To set zero keys in an animation layer

1. Select an object that already has animation in the base layer.

2. Create a new layer or select an existing layer.

3. Scrub through the timeline and click the Save Zero Key button in the Animation Layers panel to set a key at the beginning of the segment that you want to blend.

This sets a keyframe with the value 0 so that the layer has no influence at the current frame. This key anchors the animation at the current parameter values.

 

4. Move to the frame at the end of the segment that you want to blend and set another zero key by clicking the Save Zero Key button again.

5. On one or more frames between the two zero keys, transform the object and set a key as you would normally.

This creates an offset from the base layer’s animation that is blended only between the two zero keys.

 

Keying Rotations in a Layer

Keying rotations in an animation layer is a little different from keying other types of parameters. You can choose to calculate the rotations in a layer using either Euler or quaternion type rotations.

You can choose which method you want to use by setting an option in the animation mixer’s Mixer property editor.

To key rotations in an animation layer

1. Select an animated object and create or select an animation layer.

2. Rotate the object and set a key as you would normally, such as by pressing K or clicking the keyframe icon.

You need to set keys on all three (XYZ) rotation axes’ parameters for quaternion interpolation to work.

3. Open the model’s animation mixer (press Alt+0).

4. Choose Mix > Animation Mixer Properties from the mixer’s command bar to open the Mixer property editor.

5. Select either of the options for Animation Layer Options > Interpolate Rotations Using:

- Euler calculates each of the rotation’s XYZ axes independently. It computes the layer rotation values in between keys using the same interpolation as you do when normally keying rotations on an object. The results may not be as smooth an interpolation as quaternion, but you can have more control over the layer’s resulting fcurves.

- Quaternion calculates all three rotation axes as a single unit. The keys from the rotation fcurves are extracted and interpolated smoothly using quaternion interpolation. The fcurves’ keys are used for calculating in-between values, but not the rotation fcurves themselves. Because the quaternion fcurve has a key inserted for every key in the original rotation fcurves, it helps if the XYZ keys in the original fcurves are aligned on the same frames.

If you’re primarily adjusting an existing animation with layers, this option is useful if you want to offset the rotation in an arbitrary way (for example, not just around one of the existing axes). Quaternion interpolation usually gives smoother results than Euler when you add a rotation offset in the middle of multiple rotation layers.

For more information in general about Euler and quaternion rotations, see Animating Rotations.



Autodesk Softimage v.7.5