Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Clockwork

From: After Effects Apprentice 09: Expressions

Video: Clockwork

Let's keep building upon what we have learned by using the Pick Whip tool and some simple math to create an animation which would otherwise require a calculator and a little bit of thought. First, to clean things up, I am going to go to the Comp panel and select Close All, just closes all compositions, go back to the Project panel, and open up the comp 03-Clockwork starter. Here we have all the pieces of an old watch face. The minute hand had already been keyframed, and I'll press 0 to RAM Preview. You'll see it's doing a nice sweep around the screen.

Clockwork

Let's keep building upon what we have learned by using the Pick Whip tool and some simple math to create an animation which would otherwise require a calculator and a little bit of thought. First, to clean things up, I am going to go to the Comp panel and select Close All, just closes all compositions, go back to the Project panel, and open up the comp 03-Clockwork starter. Here we have all the pieces of an old watch face. The minute hand had already been keyframed, and I'll press 0 to RAM Preview. You'll see it's doing a nice sweep around the screen.

The hour hand and the second hand have not been animated yet. I'll press R to reveal the Rotation. And, by the way, for those who watched the After Effect Apprentice lesson on parenting, the anchor point is indeed very important for the rotation of things like the hour and second hand. That way when we animate the rotation, it is animating around its pivot point, not just the center of the layer. Let's say we want this to work like a real watch, where the hour hand goes slower than the minute hand and the second hand goes faster than the minute hand.

Let's start with the hour hand. First, I'll make sure the rotation parameter, the parameter I want to work with, is already exposed for these two layers. I'll hold down Option or Alt, click on the stopwatch for rotation, use the Pick Whip tool, and drag it up to Rotation for the minute hand, so now they're tied together. However, the hour hand goes slower than the minute hand. When the minute hand has made one full rotation, the hour hand has only moved one twelfth, one hour around the dial. Well, with expressions that's very simple.

I'll type slash for divide, 12, divided by 12, go one-twelfth speed. Press Enter on numeric keypad, press 0 to RAM Preview, and you'll see that the hour hand is indeed moving at the correctly matched space to go along with the minute hand's animation. Perfect. Let's tie together that second hand as well. I'll hold down Option or Alt, click on the animation stopwatch for rotation, drag the pick whip back up to the Rotation for the minute hand, and in this case this second is supposed to go 60 times as fast as the minute hand, 60 second in a minute.

So I'll do asterisk for times, 60 for sixty, and I will just click off somewhere to accept the expression. Now as I step through the animation, you'll see that the second hand is indeed jumping ahead. I can turn on Motion Blur for the composition-- we've already turned it on for the individual layers--to see a little bit more fun movement going out to that second hand. Press 0 to RAM Preview. The second hand is really roaring at the speed of the minute hand, but you get an idea. Now, let's remember that nasty client who keeps changing his mind.

In this case, he may say, "That second hand is going way too fast. Slow down the whole animation." Well, if you've done this all with keyframes, you'd have to reenter new values for the minute, hour, and second rotation to the get them all to line up. But in this case, we'll just go that last rotation keyframe for our master, the minute hand. We'll slow it down to maybe 0 rotations and just 120 degrees. Hour and second hand is automatically updated, RAM Preview, and now we have an animation that's much easier to follow.

And what's most important is we edited just one keyframe and everyone else followed along. I know I'm really hammering this point home, but that's why it's worth learning expressions. Ultimately, they will save you a lot of time, prevent you from making errors, and allow you to get to bed earlier, rather than being up all night accommodating client changes. So we got pretty far here just by using the Pick Whip tool and some simple math; however, you can take your expressions skills to the next level with just a little bit more work.

That's the subject of the next chapter.

Show transcript

This video is part of

Image for After Effects Apprentice 09: Expressions
After Effects Apprentice 09: Expressions

20 video lessons · 11013 viewers

Chris Meyer and Trish Meyer
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed After Effects Apprentice 09: Expressions.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.