ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Audio controlled vertical scaling

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lewis Snook
Audio controlled vertical scaling
on Apr 5, 2018 at 6:44:16 am



I am trying to make the mouth of a character open and close in sync with the audio.

I have already linked the mouth scale to the audio amplitude, and it does open and close using the expression in the box.



I want to control the minimum scale and the maximum scale. Sometime the audio is quiet and so the mouth barely moves, and sometimes it is so loud the mouth goes ridiculously big. I have tried changing the number *18 in my expression to lower and higher, but the audio ranges are too big to get a nice consistency. I will also add I only want the mouth to open vertically as it does in this expression and not change scale horizontally.

I should imagine there is some use of min, max expressions, but I am too novice to work it out.

Thanks

[100, thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider") * 18]


Return to posts index

Neil Hammers
Re: Audio controlled vertical scaling
on Apr 5, 2018 at 9:14:08 am

I believe you can use interpolation commands, like linear.. which would look smth like this:

amp = amplitude;
slider = custom slider control to manage scale levels when necessary;
linear(amp, 0, slider, [100, 0], [100,100]);


Nh


Return to posts index

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