|
Part Four An Introduction to Adobe After Effects
In-Betweening To animate effectively in AE, we need to understand keyframes. A keyframe represents a change in the value of a property at a point in time. The distance between two keyframes is
In AE, the computer fills in the information between the keyframes. This point was illustrated by the exercise we did in Part Two of this series (in the November/December 2001 issue). If you havent read that lesson, you may want to look at it before you start this one. In that exercise, we had two layers a still image of an airplane (including an alpha channel) and a still image of the sky. We animated the airplane layer by setting two keyframes for its position property. The first keyframe anchored the layer off-camera to the right, and the second keyframe anchored the layer off-camera to the left. The airplane flew across the sky because the position value changed between those two keyframes. AE automatically calculated the difference and rate of change between the two keyframes and used that information to set a position value at each in-between frame. This is fine for very simple motion, but to make smoother and more realistic animations, we need to have more control over the way AE calculates the in-betweens, a process known as interpolation. Keyframe Interpolation The way that AE interpolates the values between two keyframes in the Timeline is determined by the type of keyframes on either side of the in-between. There are three basic types: linear, bezier and hold. And bezier keyframes come in three varieties: bezier, auto bezier and continuous bezier (see Figure 2).
The default keyframe is linear, which looks like a little diamond. The interpolation between two linear keyframes will result in a constant rate of change between the two values. This is the interpolation that was used in our airplane exercise, and as you saw, the result was somewhat flat and mechanical. An auto bezier keyframe, which looks like a little circle, automatically smooths out the curve going into and out of a keyframe, resulting in a more fluid motion. You can toggle between linear and auto bezier keyframes by Command-clicking on the keyframe. A hold keyframe, represented by a little square, holds a value until the next keyframe, so that you can freeze the property momentarily. Different types of keyframes can also be combined, so that incoming and outgoing values are interpolated in different ways. An Exercise in Controlling Motion Once again, we will be moving an airplane through the sky, but this time, we will fake the perspective so that the airplane appears to accelerate rapidly toward us. For this exercise, you will need to download two new files from the Guild website click here to get: blackbird.tga and sky.jpg.
The airplane should appear as though it is coming toward you, but the movement will be far from realistic. Because the keyframes we have set are linear by default, the rate of change between the two keyframes is constant. If you place the time marker halfway between the first and last keyframes, at 1:14, you will see that the value for Scale is 500% halfway between the first value (0%) and the second (1000%). But if we were seeing this in the real world, the closer the airplane came to us, the faster it would appear to be traveling. (A mathematician would say that the motion is logarithmic rather than linear.) To simulate this in our animation, we want the airplane layer to progressively speed up. To accomplish this, we must tell AE how to in-between the keyframes.
Click the little triangle next to the Scale property in the Timeline. Two graphs are revealed (see Figure 3). These are the value and velocity graphs, and every property with keyframes
The graphs represent different ways of looking at the same keyframe data: changes you make in one will modify the other. But the value graph is much more intuitive, and its usually easier to make your adjustments there. We now return to the bezier keyframes that I mentioned earlier. If you have used Adobe Illustrator or the Pen tool in Adobe Photoshop, you are familiar with bezier curves Developed by Pierre Bézier in the 1970s, they are composed of points that have handles protruding from either side. Pulling and stretching these handles affects the shape of the curve. AE makes a distinction between bezier and continuous bezier keyframes: with a continuous bezier, the incoming and outgoing curves are identical; with a bezier, they can be different. By changing our keyframes from linear to bezier, we will be able to manipulate the value graph in a very precise way and make our animation much more sophisticated. Heres how:
Next time, well use the same source files to learn more about Position keyframes and finally add motion blur to make the animation look more realistic. |