Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
OpsTao
Topic Author
Posts: 2
Joined: Wed Oct 11, 2017 7:26 pm

Expression for sine wave modulation of filter intensity

Wed Oct 11, 2017 7:34 pm

Can someone suggest an expression method for varying the intensity of an AE filter in a sine wave fashion? The specific application(s) in mind are either a slowly pulsating intensity of gaussian blur, from low to high, and/or pulsating change in opacity. In the case of Gaussian blur, the current max value is around 28-30 and the range desired would be something single-digits up to that value. 
 
Dan Ebberts
Posts: 319
Joined: Sat Jun 26, 2004 10:01 am
Location: Folsom, CA
Contact:

Re: Expression for sine wave modulation of filter intensity

Fri Oct 13, 2017 11:55 am

Play with this:

freq = 1;
midVal = 20;
range = 10;

midVal + range*Math.sin(time*freq*Math.PI*2)


Dan
 
OpsTao
Topic Author
Posts: 2
Joined: Wed Oct 11, 2017 7:26 pm

Re: Expression for sine wave modulation of filter intensity

Sat Oct 14, 2017 10:07 am

Thanks, Dan Ebberts! As a start this works well, now I can experiment with timing and range.

Who is online

Users browsing this forum: No registered users and 2 guests