-
Check Box Expression: if one box is checked, the rest are automatically unchecked or disabled
I have 5 layers that can each be turned on with a checkbox. Problem is, I need only one box to be able to be checked at a time. Currently, you can check all 5 boxes, resulting in something not so desirable. How can I Iimit one check box checkable at a time?
Thanks in advance for your help!!!! 🙂
lay1 = thisComp.layer("INSTAGRAM").effect("Checkbox Control")("Checkbox");
lay2 = thisComp.layer("TWITTER").effect("Checkbox Control")("Checkbox");
lay3= thisComp.layer("FACEBOOK").effect("Checkbox Control")("Checkbox");
lay4= thisComp.layer("YOUTUBE").effect("Checkbox Control")("Checkbox");
lay5= thisComp.layer("SKYPE").effect("Checkbox Control")("Checkbox");
lay6= thisComp.layer("SNAPCHAT").effect("Checkbox Control")("Checkbox");
y=transform.position[1];
if
(lay1==1 || lay2==1 || lay3==1|| lay4==1|| lay5==1|| lay6==1)
{
x= 630.5;
}
;
else
x= 572.5;
[x,y];