-
Begin an animation when a condition is met
I’m trying to modify a blinking cursor typewriter/console animation. It uses this expression to cause the cursor to blink at all times:
var s = effect(“Cursor Blink Speed”)(1);
var blink = Math.sin(Math.PI*time*s);
if(b == 1){
(blink >= 0) * 100;
}else{
0;
}However, I’m trying to get the animation to begin *exactly when* my text layer has finished animating on. I have a slider that controls the text animation completion. When the value of that slider has a speed of zero, it activates the blink animation. This almost works for me, but because the status of that blink animation is based on absolute time (so it’s like cutting to an animation that’s already in progress), it often blinks for only one or two frames when it’s triggered.
What I’d like is for the sine function to begin its cycle right when the slider’s speed hits zero.
I know expressions have no memory, so I don’t know if this is possible. Anyone have a solution?