-
Timer time.toFixed(1) linked to a checkbox control effect.
I’m trying to make a timer count up with the expression “time.toFixed(1)“, and I want it to link it to a checkbox control effect, so when the checkbox is on, the timer runs, but when the checkbox is off, the timer freezes at that frame. I want it to be as automated as possible, so i would only have to keyframe the On/Off of the Checkbox Control Effect.
I tried this expression:
if(thisComp.layer("Null 1").effect("Checkbox Control")("Checkbox")>0){time.toFixed(1)} else {}But I don’t know what expression use in the “else” statement. If there’s any expression that would make the timer stop at the time i put the checkbox in “Off”, i would happier than ever.
I’d really apreciate it if you helped me with it. Thanks