FORUMS: list search recent posts

Pulse expression edit

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mario Pascal
Pulse expression edit
on Dec 28, 2016 at 5:49:37 pm

I need an edit on this expression

minAudio = 0;
maxAudio = 100;
minStretch = 90;
maxStretch = 130;
audioLev = thisComp.layer("Sound Keys").effect("Sound Keys")("Output 1");
s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);
[s,s]

Instead of it stretching I want it to control the opacity so when the audio level is 100 the opacity will be 130 as the max. Yes, I used Sound Keys to isolate bass so it will react to bass, help please!


Return to posts index

Dan Ebberts
Re: Pulse expression edit
on Dec 28, 2016 at 6:39:36 pm

I'm not sure why you would want opacity to go to 130, but editing the expression should be pretty easy. All you need to do is remove the last line:

minAudio = 0;
maxAudio = 100;
minStretch = 90;
maxStretch = 130;
audioLev = thisComp.layer("Sound Keys").effect("Sound Keys")("Output 1");
linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);



Dan



Return to posts index

Mario Pascal
Re: Pulse expression edit
on Dec 28, 2016 at 7:07:37 pm

Lol thanks but i meant like if the audio goes to 100 then the opacity will go to x%(whatever number i choose)


Return to posts index


Dan Ebberts
Re: Pulse expression edit
on Dec 28, 2016 at 7:49:05 pm

Then I say choose one and set maxStretch accordingly. 😉

Dan



Return to posts index

May Kum
Re: Pulse expression edit
on Jan 27, 2017 at 12:13:41 pm

Thanks, Dan! Would you tell me what does "s" means in this expression?


Return to posts index

Dan Ebberts
Re: Pulse expression edit
on Jan 27, 2017 at 4:51:13 pm

It's just a variable name. I could have used anything. The purpose of the variable is to temporarily store the value of the linear() interpolation so I can use it in the next line so that the scale will be the same for x and y.

Dan



Return to posts index

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