Start learning with our library of video tutorials taught by experts. Get started

After Effects Apprentice 09: Expressions
Illustration by John Hersey

Keyframes and client changes


From:

After Effects Apprentice 09: Expressions

with Chris Meyer and Trish Meyer

Video: Keyframes and client changes

If you have access to the exercise files that came with this lesson, open up the project AEA_Expressions.aep. If instead you are following along using our book After Effects Apprentice, 2nd Edition, go ahead and open up the project file that came with Lesson 07, Expressions and Time Games. Before you dive into expressions, first we'd like to give you a taste of what could go wrong if you rely too much on using keyframes for all of your animations. Inside of the Comps folder double-click 01-Pick Whip* Starter to bring that open.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
After Effects Apprentice 09: Expressions
1h 37m Intermediate Jul 27, 2011 Updated Nov 29, 2012

Viewers: in countries Watching now:

Expressions are one of the most powerful but underused features in After Effects. They can be used to animate layer properties with code, as compared to explicitly keyframing every value in the Timeline, and have multiple parameters and layers that follow the lead of a master layer or controller effect, making it much easier to coordinate complex animations and quickly accommodate client changes. In this introduction, Chris Meyer shows how to let After Effects do most of the work by creating simple but very useful expressions that can be put to work on a wide variety of jobs.

The After Effects Apprentice videos on lynda.com were created by Trish and Chris Meyer and are designed to be used on their own and as a companion to their book After Effects Apprentice. We are honored to host these tutorials in the lynda.com Online Training Library®.

Topics include:
  • Creating and managing expressions
  • Linking together different parameters
  • Randomizing a layer's movement
  • Looping an animation
  • Controlling multiple layers from a single source
Subjects:
Video Motion Graphics Visual Effects
Software:
After Effects
Authors:
Chris Meyer Trish Meyer

Keyframes and client changes

If you have access to the exercise files that came with this lesson, open up the project AEA_Expressions.aep. If instead you are following along using our book After Effects Apprentice, 2nd Edition, go ahead and open up the project file that came with Lesson 07, Expressions and Time Games. Before you dive into expressions, first we'd like to give you a taste of what could go wrong if you rely too much on using keyframes for all of your animations. Inside of the Comps folder double-click 01-Pick Whip* Starter to bring that open.

Click on the RAM Preview button at the far right of the Preview panel or just press 0 on the numeric keypad. Here we have a very simple animation of a pulley that's rotating and scaling, and to verify that, I'll select the layer and press U to reveal all of its animating properties. Let's say I want the red pulley to do exactly the same thing. Easy enough. I'll click on the word Scale to select all the scale keyframes, hold Shift and click on the word Rotation to select all those keyframes as well.

Then press Command+C on Mac, Ctrl+C on Windows, to copy those keyframes. Make sure your Current Time Indicator is moved back to the time where you want that first keyframe to start. Select the red pulley and Command+V or Ctrl+V to paste. I'll press U to verify the keyframes are in the right places. They are. Let's give it a RAM Preview. The client sees this and says, "Yeah, I like this. I like the idea of multiple layers coordinated and doing the same thing.

I like it so much, could you make more layers to the same thing?" And you go, "Yeah, that's easy enough." I'll select the blue pulley, Command+D or Ctrl+D to duplicate, and start moving these copies around the screen. Do the same thing with the red pulley: Command+D or Ctrl+D and drag to a few new locations, maybe one here and one down here. Just to give them a better distribution, I'll reorder some of them inside my Timeline panel.

So the red and blue pulleys alternate in the Timeline panel stack. 0 to RAM Preview, and now we have a bunch of pulleys filling the screen, doing this coordinated animation. Client sees this and says, "That's a lot of fun. But right there, right there where they are moving really fast, it's kind of hard to tell what the spokes are doing. Could you slow down that last rotation bit right in through there?" And you go, "Oh, now I have nine layers." I could edit the last rotation keyframe for everybody, or I know what will be even easier, let's go to the last one, change its value to only -1 revolutions, click on the word Rotation to select all of the keyframes, Command or Ctrl+C to copy, make sure the Time Indicator is back at the start, Command or Ctrl+A to select all the layers, Command or Ctrl+V to paste.

They should all have the same rotation keyframes now. Let's RAM Preview again, and there is a little bit slower motion. That's what the client wanted. Great! So you showed this proof to the client, and they go, "Better, yes, I like the slow motion. But you know, I'm still finding it distracting that's it's rotating in that last scale-down. Could you just stop the rotation before that scale-down?" Now you go, "Okay." I am in a little bit of danger here because if I just move one keyframe, copy, go to another layer and paste, I actually will get an extra keyframe.

I won't just move the keyframes. That's not going to work. Oh, I know, I'll select all the layers, press R for rotation, marquee-select all of those keyframes, and drag them all up earlier in time, maybe right around here. Reveal those scale keyframes. I'll press Shift+S to reveal them. Yeah, coordinated with those, right at the same time. RAM Preview that, and the client sees this proof and goes, "Yeah, that's what I had in mind. I like that scale-down without rotation. It's something different. It's a nice resolution. But you know what would be even better? What if all the pulleys were a slightly different size, or maybe rotated at a slightly different speed? I mean, I want the animation to still be coordinated like it is, just different." And at this point you are going, "I am never going to get any sleep tonight.

I am never going to ship this in time." Well, this is an extreme example. However, the point is to show you that whenever you do have multiple layers performing the same or a coordinated action where the movement of one layer is based on the movements of another, there is an easier way than just keyframing every layer individually, and that easier way is called expressions, and that is what we're going to be focusing on for the entire remainder of this lesson. But before we go there, we need to get rid of this mess we've made.

You can either select all these other layers and delete them and get rid of the keyframes of the red pulley, or even easier, just go File > Revert > Yes, and we are back to where we started. Okay, now let's start having some real fun.

Find answers to the most frequently asked questions about After Effects Apprentice 09: Expressions.


Expand all | Collapse all
please wait ...
Q: This course was updated on 11/29/2012. What changed?
A: We have added exercise files designed for After Effects CS6. We also added a movie that shows our premium subscribers how to use the exercise files.
 
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.
Upgrade now


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 Upgrade now

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 preferencesfrom 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.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

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.