Answered
Fade in/out with checkbox tool
Please help me create objects to fade in and fade out with the checkbox tool. So I want when the checkbox turns on it will auto fade and vice versa. Here's my code for reference:
FI=effect("Fade In")("Checkbox");
FO=effect("Fade Out")("Checkbox");
Duration=effect("Duration")("Slider");
if (FI==1){
if (FI==1&&FO==1){
fadeIn=easeOut(time, inPoint, inPoint+.3, 0, 100);
fadeOut=linear(time, outPoint-Duration*.1, outPoint,0, 100)
fade=fadeIn-fadeOut;
}
fadeIn=easeOut(time, inPoint, inPoint+.3, 0, 100)} else if(FI!=1){value;}
if (FO==1){
if (FI==1&&FO==1){
fadeIn=easeOut(time, inPoint, inPoint+.3, 0, 100);
fadeOut=linear(time, outPoint-Duration*.1, outPoint,0, 100)
fade=fadeIn-fadeOut;
}} else if(FO!=1){value;}
