When you first begin animating with keyframes, you may add one, two, or even hundreds of keyframes by accident! Also, you might want to toggle the animations you create on and off to see how your video looked before and after the animations. Let's look at a few ways we can achieve that.
Chapter
4
folder and navigate to the 04_02
project. Double-click on it to open.You've got tons of options for deleting keyframes, even in the Timeline.
You can also select and delete keyframes in the Timeline. Simply select the keyframe under the layer and press Delete from your keyboard. Keep in mind that if two or more parameters are keyframed at the same position in time, they will all be deleted.
While a lot of keyframing can be done in the Inspector, for fine-tuned animations we go to the Keyframe Editor.
For fine control over your keyframes and individual values, we need to look beyond the Timeline and the Properties tab. Here comes the Keyframe Editor. We can access it from the Window menu, by pressing Command + 8, Ctrl + clicking a keyframe in the Timeline, or clicking on the keyframe icon at the bottom-right of the Timeline. In the Keyframe Editor, we can copy and paste keyframes, see how various keyframed parameters interact with one another, and get an understanding of how Motion interpolates the values between your keyframes. We'll see more of the Keyframe Editor in the next few recipes, but for a sneak-peek, have a look at the following screenshot:
In the Keyframe Editor, the lines you see between keyframed parameters represent interpolation.
Interpolation is the path of travel between two keyframes. Basically, as an animator, you add keyframes and Motion interpolates the values in the middle. As we'll see, not all interpolation is the same. For instance, some values you keyframe, such as scale, are automatically given a linear interpolation, meaning the rate of speed does not change between keyframes. On other values such as position, the interpolation will be Bezier or have curves, so the rate of speed changes over time. This is to try and mimic the way things move in real life. Rarely do objects travel along straight, linear paths. Take your car, for instance. When you start driving at a green light, your car slowly makes its way up to the speed limit. When it stops, your car slows down before coming to a rest.