Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Moving a mouth..

  • Posted by Daryl Booth on December 17, 2007 at 3:15 pm

    Hi,

    I am working on an animation (think southpark type gfx) and need to link a mouth to move (very basic just open shut no shapes) to the audio speech track.

    Is there a simple expression that will allow this.

    the layers are called

    mouth
    head
    speech

    even a link would be great.

    Thanks in advance

    Codemonkey

    Kevin Camp replied 18 years, 4 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    December 17, 2007 at 5:58 pm

    i’ve done something very similar… my mouth movement was a bit like the monty python jaw movement in their clipart animations, so the jaw just dropped 10-15 pixels at every sylable

    first, i added markers to the speech layer every time i need the mouth to move.

    then i just linked the jaw position to the markers with an expression… somehting like this:

    if (t > thisComp.layer(“speech”).marker.nearestKey(time).time) {
    value + [0,15];
    } else {
    value;
    }

    Kevin Camp
    Designer – KCPQ, KMYQ & KRCW

  • Filip Vandueren

    December 19, 2007 at 12:56 am

    Select your audio source and use the keyframe assistant “Convert Audio to Keyframes”.
    Check out the values this generates in the graph editor, we want to know the maximum value, in my case it was 5.

    Now just pick-whip the mouth’s position to the created values;
    you’ll get something like:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    [temp, temp]

    change the second line to:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    value + [0,15]*temp/5;

    so at the maximum audio amplitude (5), the mouth will be pushed down 15 pixels

  • Kevin Camp

    December 19, 2007 at 6:37 am

    that’s a cool trick…. unfortunately my audio was a song. if i ever have to do it again, i’ll see if they can get me the voice track separate from the music.

    Kevin Camp
    Designer – KCPQ, KMYQ & KRCW

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