skip to Main Content

Video updated: 30 November 2018

Sections on this page:

Video 10 of the Controllers & Expressions Series:
Rigging Angie’s eyes, part 5 of 5

This video completes the Rigging Angie’s Eyes project, leaving one more project to complete this series. In this video we’re going to connect the eyelids to the controllers so that Angie can wink and blink.

The next project will involve creating a mouth-icon table that goes on the composition panel, and can be used to lip-sync dialogue.

Controllers & Expressions Series announcement graphic

Rigging Angie’s eyes,
part 5 of 5

If you missed part one, it’s here, along with the work files.

Expression introduced:
  • value
Video content:
  • 0:00 Introduction
  • 0:24 Housekeeping & setting up the interface
  • 1:40 Setting the eyelid anchor points
  • 3:40 Determining the distance the eyelid must travel
  • 4:48 Writing the first expression & introducing the expression value
  • 7:35 Using the first expression for the lower left lower eyelid with a single modification
  • 8:17 Expanding the first expression to include the switch for the right eyelids
  • 12:15 Testing the rig and closing
  • 13:27 End Credits

Code from the video

The code below is provided as a reference, and was copied directly from the video After Effects file. Expression fields that contained only a pick whip connection are not included.

L Eyelid Top layer Y position property

The expression is the same for the L Eyelid Bottom Y position property except you change the addition sign (+) in line 4 to a subtraction sign (-).

SP=value; //Starting Position
LEC=comp("Angie Head v3").layer("L Eyelid Control Handle").transform.position[0];
D=linear(LEC,0,200,0,64); //eyelid travel Distance
P=SP+D;
P

R Eyelid Top layer Y position property

The expression is the same for the R Eyelid Bottom Y position property except you change the addition sign (+) in line 10 to a subtraction sign (-).

SP=value; //Starting Position
LEC=comp("Angie Head v3").layer("L Eyelid Control Handle").transform.position[0];
REC=comp("Angie Head v3").layer("R Eyelid Control Handle").transform.position[0];
SW=comp("Angie Head v3").layer("Switch R Eye Active").transform.position[0];
if(SW>=0 && SW<=10){
   D=linear(LEC,0,200,0,64); //eyelid travel Distance
}else{
   D=linear(REC,0,200,0,64);
}
P=SP+D;
P
Back To Top