Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Audio controlled vertical scaling

  • Audio controlled vertical scaling

    Posted by Lewis Snook on April 5, 2018 at 6:44 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]

    Hammers Nail replied 8 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Hammers Nail

    April 5, 2018 at 9:14 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

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