![]() |
![]() |
Animation > Editing animation keys > Example: recording and editing animation
Example: recording and editing animation
In this example, you animate the gate at a railway crossing. The gate is attached to the post by a pin joint constraint. You can translate the gate to lift or lower it. You can create an animation by recording the motion interactively, then adjust the keys in the Sequencer.
Note: To try this example, open the Railway_start.axel in AXEL / Documentation / Tutorials. You can also follow the example using a cube that you translate across the viewport.
Record the animation:
- Go to time 0, and translate the gate to a vertical position.
- Turn on Record.
A position animation appears in the Sequencer.
- Turn on Play and translate the gate down.
When you release the mouse, several keys appear in the Sequencer.
- To preview the animation, go to time 0 and turn on Play or drag the playhead to scrub the animation.
Modify the animation using the Sequencer:
- Right-click the animation sequence and choose Frame All Items.
Now all the keys appear in the Sequencer.
- Translate individual keys to modify the timing of the closing.
- Double-click the animation sequence to display the curve editor, then edit keys on the X and Y axis to fine-tune the lowering of the gate.
- In the Parameter Editor, set Interpolation to Smooth.
Notice the change in the curves and in the motion when you play back the animation.
![]() |
![]() |