-
run expression on specific frame
hi:
i am using a jello style effect on one of my animations. I would like to offset it by 10 frames so i can scale the layer and then at the end the effect appears. i dont know how to change this in the expression.
Also, is it possible to trigger it at different times? Maybe add a keyframe and the expression kicks in when it reaches it?
Thanks.
This is the expression:
var maxJiggleAmount=effect(“amount”)(“Slider”);
var jiggleSpeed =effect(“speed”)(“Slider”);
var decayRate=effect(“decay”)(“Slider”);
var x=transform.scale[0] + maxJiggleAmount * Math.
sin(jiggleSpeed * time)/Math.exp(decayRate * time);var y=transform.scale[0] * scale[1]/x;
[x,y]