-
surprised by sporatic result in expression
Hi everyone.
I’m using the code below to make a wing flap.
The problem is when i ramp the sliders up it the wing goes crazy until it hits its destination frequency/amplitude.
Does anyone have any idea why? Does it need to calculate integers and not decimals? my sliders are as follows:
frequency: 0.32 -> 3.3
amplitude: 10 -> 77Also, how would i add in the ease(…) code to it?
Thanks!
/jay(ps, the decay element is not needed in the expression)
freq = thisComp.layer("Null: Angle Wing Slider").effect("Frequency Slider")("Slider");
amplitude = thisComp.layer("Null: Angle Wing Slider").effect("Amplitude Slider")("Slider");
decay = 0; //no decayamplitude*Math.sin(freq*time*2*Math.PI)
jay