Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animate Scale Y Axis to Audio Amplitude

  • Animate Scale Y Axis to Audio Amplitude

    Posted by Oliver Livsey on April 25, 2018 at 8:05 am

    Hey there!

    I am basically wanting an image to scale up and down to my audio amplitude on the Y axis. I am useless with expressions so any help would be very grateful!

    The expression I usually use for scale to audio is:

    minAudio =10;
    maxAudio = 1;
    minStretch = 100;
    maxStretch = 110;

    audioLev = thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);

    s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);

    [s,s]

    But that locks both X & Y. Im just looking to effect the Y axis only.

    James Ronan replied 8 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • James Ronan

    April 25, 2018 at 10:10 am

    Try changing the last line [s,s] to this:

    [value[0],s]

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