-
Checkbox controlled Keyframe value
Hi There,
I’m trying to make a checkbox controlled blur on a layer. I want the option to switch of the blur in an Essential Graphic if it is desired.
So I found this script and it (almost) does the trick. But when the checkbox is unchecked the blur ramps up to its 2nd keyframe value to drop to zero when on key. I think that the problem lies between the parentheses of the ‘ease’ part but don’t know how to solve this. To make it more complex, I also want it to be keyframed in reverse on the same layer…
checkboxOn=thisComp.layer("CHECKBOX-CTRL").effect("BLUR-ON_OFF")("Checkbox")[0];
keyframeValue=15;
k1 = key(1).time;
k2 = key(2).time;
if (time<=k1) value;
else
if (time>k1 & time<k2) ease(time,k1,k2,value,keyframeValue)
else
if (checkboxOn)(keyframeValue)
else
value