User Guide

315
ADOBE AFTER EFFECTS 5.0
User Guide
To make the minute hand rotate 12 times faster than the hour hand, type “*12” at the end
of the expression as follows:
this_comp.layer("hour hand").rotation*12
Controlling blur by its horizontal position Start with one layer that is of smaller dimen-
sions than the composition. Set Position keyframes for the layer and then apply the Fast
Blur effect. Select the Fast Blur’s Blurriness property in the Timeline window and choose
Animation > Add Expression. Drag the pick whip to the Position property, and the
following expression appears:
position[0]
If the blur is too intense, cut the blur amount by one-tenth by adding “/10” to the end of
the expression as follows:
position[0]/10
Successive scaling up of objects Start with three layers, positioned at the location you
want them to stream in from. Create Scale keyframes for the first layer. For example, make
Scale = 0 at 0 seconds and Scale = 100 at 6 seconds. Select the Scale property for the second
layer and choose Animation > Add Expression. Drag the pick whip to the Scale property
of the first layer. The following expression appears:
this_comp.layer("layer name").scale
To make the second layer scale 2 seconds later than the first, add the “value_at_time”
function to the end of the expression, such as:
this_comp.layer("layer name").scale.value_at_time(time-2)
Writing your own expressions
After Effects uses JavaScript 1.2 for expressions. JavaScript provides all the necessary state-
ments, functions, and operators for constructing expressions. To write your own expres-
sions, it may help to have some basic knowledge of JavaScript syntax and mathematics.
However, once you learn the basic logic behind creating an expression, you can write fairly
sophisticated expressions without ever looking at a JavaScript reference guide.
UG.book Page 315 Wednesday, February 21, 2001 12:05 PM