ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Mouth/Jaw Movement Using Audio Amplitude

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Neto Dal Bon
Mouth/Jaw Movement Using Audio Amplitude
on Apr 2, 2014 at 7:18:48 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!


Return to posts index


Declan Smith
Re: Mouth/Jaw Movement Using Audio Amplitude
on Apr 2, 2014 at 9:04:16 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
http://www.madpanic.tv
After Effects CS6/ FCS3 / Canon XLH1 / Canon 7D / Reason / Cubase

"it's either binary or it's not"


Return to posts index

Neto Dal Bon
Re: Mouth/Jaw Movement Using Audio Amplitude
on Apr 2, 2014 at 9:15:56 pm

They both worked!

Thank You Very Much!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]