Video updated: 30 November 2018
Sections on this page:
Video 7 of the Controllers & Expressions Series:
Rigging Angie’s eyes, part 2 of 5
In this video we’re going to place the eye parts in separate compositions and prepare them for rigging. I’ll be introducing the Checkbox Control, which we’ll be connecting to Angie’s pupils, along with some sliders, so we can manipulate their size.
Video content:
- 0:00 Introduction
- 0:41 Place left & right eye layers into compositions
- 2:22 Resizing the eye compositions using area of interest tool
- 4:45 Resizing the eye composition editing composition settings
- 5:25 Reposition the eyes in the Head Layer
- 8:00 Writing the R Eye composition expression
- 7:27 Writing the L Eye composition expression
- 10:42 Testing the rig & closing
- 11:26 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.
R Eye comp, R Pupil scale property
S=comp("Angie Head v3").layer("Eye Control Handle").effect("R Pupil Size")("Slider"); [S,S]
L Eye comp, L Pupil scale property
S=comp("Angie Head v3").layer("Eye Control Handle").effect("R Pupil Size")("Slider"); CB=comp("Angie Head v3").layer("Eye Control Handle").effect("Pupil Symmetry Off")("Checkbox"); LS=comp("Angie Head v3").layer("Eye Control Handle").effect("L Pupil Size")("Slider"); if(CB==1){ S=LS; } [S,S]