Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Mouth/Jaw Movement Using Audio Amplitude

  • Mouth/Jaw Movement Using Audio Amplitude

    Posted by Neto Dal bon on April 2, 2014 at 7:18 pm

    Hello!

    I´m making a 8-bit animation on after effects, and I´m using this expression, so the mouth of my character moves on Y according to the audio amplitude.

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

    1. I want to know if there´s an expression so I can limit the value of temp. I want it to have a maximum value of 30, so if it is more than 30, it keeps on 30, this way the jaw of my character doesn´t move more than the size of his face.

    2. I also need another expression, so i can see what´s the best option. I want the jaw to move 0 a temp is < 5 , and I want it to move directly to 30 if the temp value is > 5.

    Thanks!

    Neto Dal bon replied 12 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Declan Smith

    April 2, 2014 at 9:04 pm

    For the first part of your question, limiting the value, you could change your expressions thus:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”) ;
    if (temp > 30) {
    temp=30;
    }
    [position[0], position[1] + temp];

    For the second part, making your values jump you could try:

    temp = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”) ;
    if (temp <= 5) {
    temp=0;
    } else {
    temp = 30;
    }
    [position[0], position[1] + temp];

    Declan Smith
    https://www.madpanic.tv
    After Effects CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

    “it’s either binary or it’s not”

  • Neto Dal bon

    April 2, 2014 at 9:15 pm

    They both worked!

    Thank You Very Much!

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