Page 1 of 1

Expression for sine wave modulation of filter intensity

Posted: October 11th, 2017, 7:34 pm
by OpsTao
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. 

Re: Expression for sine wave modulation of filter intensity

Posted: October 13th, 2017, 11:55 am
by Dan Ebberts
Play with this:

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

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


Dan

Re: Expression for sine wave modulation of filter intensity

Posted: October 14th, 2017, 10:07 am
by OpsTao
Thanks, Dan Ebberts! As a start this works well, now I can experiment with timing and range.