-
How to change “beginTime = thisLayer.inPoint” to keyframe or checkbox?
Hi there,
I have a comp which uses the following expression:beginTime = thisLayer.inPoint;
if (time < beginTime){
0
}else{
t = time - beginTime;
veloc = [effect("Velocity")("Slider")]*.1;
amplitude = effect("Amplitude")("Slider");
decay = [effect("Decay")("Slider")]*.01;
amplitude*Math.sin(veloc*t)/Math.exp(decay*t) }It’s a pendulum expression from Cineblur. I would like however to not have the sway start at the layer’s in point but rather at a keyframe or a “checkbox” I was able to get it to react to a checkbox control(by replacing “thisLayer.inPoint.” But because it has a decay expression it begins decaying right away from “inPoint” even though there is no movements until the checkbox was ticked. So basically if I ticked the box at 5 seconds but it has a 7 second decay it only shows subtle movement for 2 seconds, beginning at 5 seconds. Does that make sense?
Any ideas?
Thank you!
-Stephen