Activity › Forums › Adobe After Effects Expressions › setting parameters in expressions AE
-
setting parameters in expressions AE
Posted by Wang Lee on October 19, 2006 at 10:46 pmI am using AE ^ to animate a cartoon character mouth,how do you set the
upper and lower limits for the scale?Wang Lee replied 19 years, 7 months ago 2 Members · 3 Replies -
3 Replies
-
Mike Clasby
October 19, 2006 at 11:26 pmI’m assuming your using Audio Keyframes to drive the size of your mouth layer.
If so, your expression after pickwhipping from Size to Audio Keyframes was this:temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
[temp, temp]And if you use linear interpolation it will be this:
temp = linear( thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”), 0, 30, 20, 100);
[temp, temp]The above assumes that the audio levels on the slider were from 0 to 30 (max) and you want to have your Size interpolated from 20 to 100. Change the numbers as needed. It just a straight proportional interpolation.
You can see the generic form,
linear (t, Tmin, Tmax, value 1, value 2)
and other expressions for interpolations by clicking the little triangle next to the pickwhip (when expressions are exposed (ee)) and then clicking on Interpolation. Lots of basic expression can be seen there.
-
Mike Clasby
October 19, 2006 at 11:41 pmHave you seen Aharon’s tut, Lip-Synching Characters in AE? Click his head and scroll down. He matches mouth shapes with phonemes.
A corny (hey, one persons corny is another persons charming) but quick method is to tie expressions (pickwhip) from the Audio Keyframes slider to the Amount on the effect Distort> Split 2. Actually you apply it to both Amounts, with the lower lip getting a *4 (means times four), so it will be 4 times larger than the upper lip. Oh, yeah, position the corners so their at the corner of the mouth, and you need a interior mouth layer underneath because Split rips open the layer, exposing what’s underneath.
Also, Crazy Talk by reallusion is a good basic lip-synch Program to speech (easy).
Reply to this Discussion! Login or Sign Up