## Intro  
Keyframe Layers make it possible to blend between keyframes/animation curves. This is very useful when needing to switch between animation states like running and walking. Keyframe Layers can transition between these states without the need to copy/paste blocks of animation.

Feature \| Using Keyframe Layers in Cavalry to blend animations. - YouTube

[Feature \| Using Keyframe Layers in Cavalry to blend animations.](https://www.youtube.com/watch?v=21RknWajAvc)

## UI  
**Active** \- Enable/disable the layer.  
**Strength** \- Determine the strength of the layer.  
**Mode** \- Set a mode for how the layer's values blend with the layers below it:  
- **Normal** \- Keyframes on the layer are additive.  
- **Overwrite** \- Keyframes on the layer will overwrite other layers.

Double click a layer's header row to set it as the current layer. The controls will reflect the current layer's values and any changes will be applied to it.

An additional read-only control will appear in the [Scene Tree](/content/docs/user-interface/menus/window-menu/scene-window/scene-tree/index.html) when keyframes are added to any non-Default **Keyframe Layers**. This will display the combined value of all Keyframe Layers.

Use the trash icon to remove a Keyframe Layer.

Tip  
To load the **Strength** animation curve into the [Graph Editor](/content/docs/user-interface/menus/window-menu/scene-window/graph-editor/index.html), open the **Keyframe Layer Editor** and select the layer to adjust.

Increasing the Keyframe Layer's Strength increases the arm swing.

### Example  
01. Open **keyframeLayers.cv** (example file below👇) and load the Start Composition.  
02. At the bottom of the [Scene Window](/content/docs/user-interface/menus/window-menu/scene-window/index.html), click the **Keyframe Layer Editor** button   
03. Click the `+` button in the bottom right of the window to create a new **Keyframe Layer**.  
04. Double click the new Keyframe Layer to switch to it.  
05. Set keys on **armUpper.rotation** of:  
    - fr0 = -50  
    - fr20 = 50  
    - fr40 = -50  
06. Set keys on **armLower.rotation** of:  
    - fr6 = 0  
    - fr26 = 40  
    - fr46 = 0  
07. Switch to the [Graph Editor](/content/docs/user-interface/menus/window-menu/scene-window/graph-editor/index.html) to adjust the animation curves.  
08. Move the timeline to frame 100.  
09. Back in the **Keyframe Layer Editor** set the **Strength** to **0** and set a key.  
10. Move the timeline to frame 150.  
11. Set **Strength** to a value of **100**.  
12. Press Play.

The arm's swing height should increase over frames 100 to 150.

[Example Files↓ Download](/content/docs/files/keyframeLayers.cv)  
- [Intro](/content/docs/user-interface/menus/window-menu/scene-window/keyframe-layers/#intro/index.html)  
- [UI](/content/docs/user-interface/menus/window-menu/scene-window/keyframe-layers/#ui/index.html)
