Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions animating the mouth of a 2D character using an expression to match up position with waveform keyframes.

  • animating the mouth of a 2D character using an expression to match up position with waveform keyframes.

    Posted by Matthew Voye on April 11, 2007 at 6:57 pm

    I am trying to animate a 2D character for a 30 second spot. I am trying to match the movement of the character’s mouth up with the keyframes of the audio track by using an expression for the position element in the transform section of the mouth layer which is a separate layer in a Photoshop comp. The problem I am having is that I can link the expression to the audio but when I do this it is moving the mouth layer to the uppper left hand corner of the screen. I can return it to the center using the anchor point settings but then when it moves is goes to the down to right and does not move straight down. I would appreciate any help to resolve this issue.

    Matthew Voye replied 19 years, 5 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    April 11, 2007 at 7:39 pm

    Assuming you used Convert Audio to Keyframes, you probably want something like this:

    mult = 0.5;
    value + [0,thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”)*mult]

    Adjust the value of “mult” to set the magnitude of downward movement. Change it to a negative number to generate upward movement.

    Dan

  • Xxmontyxx

    April 11, 2007 at 7:46 pm

    I’ve done this very thing using a tracker and Trapcode’s soundkeys. You can set the output of the waveform to include only the Y axis. Then for further refinement you can divide the expression by any number to soften the expression’s effects.

    In your position expression, create a variable of “temp=this.complayer”. When you create your array enter 1 for x (ex. [1, temp, temp]. Now your variable will only be effecting the y and/or z values.

  • Matthew Voye

    April 12, 2007 at 11:35 am

    Thanks for the help it was exactly right. Now I can make a great animation.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy