Activity › Forums › Adobe After Effects › audio keyframe expression question
-
audio keyframe expression question
Posted by Donato M. rondinelli on June 29, 2006 at 6:57 pmI am trying to do a Monty Python FX. I have a photo of a guy that I cut out & I want to animate his mouth to match the VO. I changed the audio to keyframes & and added an expression to the position. It works but his mouth moves too far down & on an angle. How do I straighten the movement & decrease the intensity? I’m clueless when it comes to expressions & how to enter values.
Here
Mike Clasby replied 19 years, 10 months ago 3 Members · 7 Replies -
7 Replies
-
Mylenium
June 29, 2006 at 7:20 pmYou need to remap the values. Find the maximum aamplitudes in your layer and then use this:
amplitude=thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
amp_max=700; //maximum actual audio level
amp_min=100; //minimum actual audio level
pos_max=100; //maximum position offset you want
pos_min=-100; // minimum position offset you wantX=position[0]
Y=position[1]+linear(amplitude,amp_min,amp_max,pos_min,pos_max);[X,Y]
The above example will only vary the Y position and gives you the option to manually place the “center” of your mouth and even animate it with keyframes in addition to the expression.
Mylenium
[Pour Myl
-
Mike Clasby
June 29, 2006 at 7:44 pmAs a starting point, change your last line to this:
[position[0], temp*.2]
the position [0], means use the x value (of the layer),
the *.2 means multiply by .2 which decreases the keyframe values.
You can also add a slider to the layer, highlight the “.2” in the expression and pickwhip to the slider, giving an expression:temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
[position[0], temp*effect(“Slider Control”)(“Slider”)]then change the slider values (right click, the slider value, then Edit Value, and change the max to 1, then the slider will be min 0 to 1 max, and you can now change the multipling effect of the y value with the slider.
-
Donato M. rondinelli
June 29, 2006 at 8:39 pmMylenium,
Very cool. Thanks.
I got it to work by doing this.amplitude=thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
amplitude=thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
amp_max=41.4244
amp_min=0.3361
pos_max=400
pos_min=391.50X=position[0]
Y=position[1]+linear(amplitude,amp_min,amp_max,pos_min,pos_max);[X,Y]
Was this correct? I had to use the anchor point to realign the mouth.
Thanks!
-dMR -
Donato M. rondinelli
June 29, 2006 at 8:45 pmThanks yikesmikes,
I have a couple more mouths to animate on this spot. I’ll do one with your code so I can try to get the hang of working with expressions.
-dMR -
Mike Clasby
June 29, 2006 at 10:57 pmAnother Monty Python-type mouth that’s quick is to tie Distort>CC Split to the audio keyframes with expressions.
Pickwhip the amount to the Keyframes Slider (both0, position the end points of the Split at the corners of the mouth, then adjust the opening amount with a *2 or *4 to increse the amount it opens.
Even better is Split 2, with a *2 on Split 1, (upperlip) and *4 on Split 2 amount (lower lip). It loos suitably goofy for Monty folks.
-
Mike Clasby
June 29, 2006 at 10:58 pmOh, yeah, put a layer underneathe with teeth or a tongue as split reveals whats benaeth, or a layer with Ramp (radia, balck and red to simulate a gullett).
-
Mike Clasby
June 30, 2006 at 3:40 amSorry for all the typos above, I was rushing off to Superman.
Twas pretty Super.
Reply to this Discussion! Login or Sign Up