ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Animate Scale Y Axis to Audio Amplitude

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Oliver Livsey
Animate Scale Y Axis to Audio Amplitude
on Apr 25, 2018 at 8:05:18 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.


Return to posts index

James Ronan
Re: Animate Scale Y Axis to Audio Amplitude
on Apr 25, 2018 at 10:10:00 am

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

[value[0],s]


Return to posts index

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