Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now let's take a look at how to use expressions to animate things like the pupils of a character. Now, in this case, I have this character here, and we set him up in the previous chapter with a head turn. In fact, let me go ahead and zoom in, so we can see his head. And let's go ahead and select his head, and you'll see there's a layer here in the Gus_All composition. And if we open up that layer, you will see we have a time remap. So if we dial this left and right, you will see we have a very nice head turn.
But let's say we wanted to change his eye direction and move his pupils. Well, we can't do that, because there are no pupils in this composition. The pupils we have here are actually in the other composition; the head composition. And this is what we used with the time remap to create the head turn. So if I select this pupil, you will see that it's already animated. It's animating along that arc, and it's moving along with the head, and that's all fine and dandy, but because it's already animated, we can't really do much with it.
So let me show you a way to take that pupil, and actually bring it into composition so that we can move it around. So first thing we want to do is we want to take this composition called HEAD, and just do Edit > Copy, Edit > Paste, and that should give me a HEAD 2 composition. So I am going to double-click on that, and go into it. You'll see that, well, it's exactly the same as the other composition, because we copied it. But what we can do is we can actually lift out this pupil, and use it in our master composition.
The way we do it is just by deleting everything else. So we're going to start with the Left Pupil, and I am going to select everything above it, hit the Delete key, select everything below it, and again, hit the Delete key. So all I have in here is the Left Pupil, and if I move my Timeline, you'll see that it's still animating along with the head turn. It's animating exactly the same that this pupil is animating, except there's nothing else behind it. So let's go to our HEAD composition here, and let's go ahead and turn off this pupil; let's take that out of the equation. And then go into our master composition, Gus All, and you'll see that he is now missing his eye, but we can bring that back in, because we have it here in the HEAD 2 composition.
In fact, let's go head and rename that to something more descriptive. I am going to right-click over here, hit Rename, and let's just call this LEFT PUPIL, and now left-click and drag that in to the layer right above HEAD. So now that we have that -- we have to zoom out here to see where it is. There it is. So I am going to go ahead and bring this up, and you can see that right now it's animating. But what we want to do is to time remap it, just the same way we did with the head. So all we have to do is select LEFT PUPIL, right-click, Time > Enable Time Remapping, and now this gives me a little slider that I can use to animate this.
But -- hang on just a second. There we go! But what I really want to do is take this Time Remap of the LEFT PUPIL, and tie it to the HEAD Time Remap, so that way I only have to animate one thing. For example, when this HEAD Time Remap is 10, I want to make sure that my PUPIL Time Remap is also at 10 -- Let me go ahead and just center this -- and the way that we do that is by using an expression. So I am going to go ahead and select Time Remap, go into Animation > Add Expression, and then go ahead and click on here so we can see what we're doing, and you'll see that now we have an expression in the Time Remap of the LEFT PUPIL.
So all we have to do is select the Pick Whip, drag it to the HEAD Time Remap, and you can see it lays it in right here, and now they should just sync up. So now I've got a left and right head turn. So this is really great. So let's go through this again for the Right Pupil, and just go through the process one more time. I am going to select my HEAD composition and do the same thing; Copy, Paste, double-click on the second composition, and in this case, we're going to delete everything, but the Right Pupil. So there it is.
Let's go into the HEAD composition, take out the Right Pupil, go into Gus All, which is our master composition, and again, let's go ahead and rename HEAD 2; make it more descriptive. So let's just call it RIGHT PUPIL, and then again, just drag that in above the HEAD, and again right-click, Time > Time Remapping, select the Time Remap, Animation > Add Expression, Pick Whip, and there we go.
So now I still need to move this into place. So let's go ahead and find that RIGHT PUPIL. You can see that it's all working; it's just that the pupil is in the wrong place. So let's go ahead and move that into place, and there we go. So now I've got a head turn with pupils that I can select and move. So if I wanted to, I could select, for example, LEFT and RIGHT PUPIL, and then I can move them to give myself some eye direction.
So I am going to go ahead and center this, put this to 10, and let's make sure I've got both of these eye; I am going to use my arrow keys a little bit here, and let's just make sure that we have the left and right pupil centered. Now, one of the things that may be problematic is going into the HEAD and selecting these, so one of the things I like to do is create an external control to select those pupils. It makes it easier when you actually go to animate, and you can do this for a number of different variables.
Now, I already have part of this set up in my composition. So if we go to the very top of our layers, you'll see I have four layers here; Eye Control, Left and Right, Pupil Control, again, Left and Right. So let's go ahead and just turn those on, and what they are is really just a symbolic representation of the eyes. And so all we have to do is basically just do some parenting. So I am going to select my LEFT PUPIL, the one I just created, and then just parent that to the Left Pupil Control. I am going to do the same for my RIGHT PUPIL; select the Pick Whip, drag to the Right Pupil Control.
Now, if I zoom in, all you have to do to animate these is just select these and move them. So now I have control over my eyes in an external way, and if I go down to my head here, I can also Time Remap, and that eye direction will stay the same. So this is a very nice way to animate character's eyes. You start setting up these external controls, and that way you don't have to really go into the HEAD composition.
You can also start to lock off, and make shy, all of these layers that we're not using, and that will clean up the actual composition and what we're seeing on the screen. So let's just refresh what we've done here. We've created separate compositions for both the left and right pupil that have animation in them, and using time remapping and an expression, we've timed these to the master control on the head. Then we used an external eye control just to control the positioning of those pupils.
Get unlimited access to all courses for just $25/month.Become a member
100 Video lessons · 8583 Viewers
94 Video lessons · 26792 Viewers
107 Video lessons · 37420 Viewers
147 Video lessons · 6206 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.