Expression for sine wave modulation of filter intensity

Moderators: Disciple, zlovatt

Post Reply
OpsTao
Posts: 2
Joined: October 11th, 2017, 7:26 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: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Play with this:

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

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


Dan
OpsTao
Posts: 2
Joined: October 11th, 2017, 7:26 pm

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