Hello,
As far as I can tell ‘thisComp.frameDuration’ tells it to play the animation from frame 0 all the way to the end.
Is it possible to hold the animation at a certain frame?
Say if the animation is 50 frames, can it play 0 to 42 and hold on frame 42?
I could just cut down the animation to 42 frames, but once the checkbox is set to ‘off’ it’ll reset back to 0 on time remap.
I would like to hold frame 42 while the checkbox is off.
Thanks!
p = thisComp.layer("On/Off Switch").effect("Checkbox Control")("Checkbox");
if (p.value){
gotit = false;
t = time;
while (t >= 0){
if (! p.valueAtTime(t)){
gotit = true;
break;
}
t -= thisComp.frameDuration;
}
if (gotit) time-t else 0;
}else
0