After Effects CS3  |  Go to CS4 Help

Example: Rotate the hands of a clock

You can use the pick whip to link rotation values between layers to animate the hands on a clock—as the hour hand moves from hour to hour, the minute hand rotates the full circumference of the clock face. This type of animation would take a long time to create if you had to set each keyframe for both hand layers, but with the pick whip, you can do it in a matter of minutes.

  1. Import or create two long, narrow solid-color layers: an hour hand and a minute hand. (See Create or modify a solid-color layer.)
  2. Set the anchor points at the ends of the layers. (See Work with layer anchor points.)
  3. Move the layers so that the anchor points are at the center of the composition. (See Move layers in space.)
  4. Set Rotation keyframes for the hour hand. (See Set keyframes.)
  5. Select the Rotation property for the minute hand and choose Animation > Add Expression.
  6. Drag the pick whip to the hour hand’s Rotation property. The following expression appears:
      thisComp.layer("hour hand").rotation
  7. To make the minute hand rotate 12 times as fast as the hour hand, add *12 at the end of the expression as follows:
      thisComp.layer("hour hand").rotation*12

Guy Chen provides a simple project that takes this idea further, connecting a clock's minute hand and hour hand's rotation to the rotation of the second hand: www.adobe.com/go/learn_ae_guyclockexpression.


Comments

Comments are no longer accepted for After Effects CS3. After Effects CS4 is the current version. To discuss After Effects CS3, please use the Adobe forum.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/en_US/AfterEffects/8.0/WS3878526689cb91655866c1103906c6dea-7a1a.html