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:
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:
It appears from your code that you only use the Duration slider for fade out, and I'm not sure about the .1 multiplier, but I think I'd structure it like this:
FI = effect("Fade In")("Checkbox").value;
FO=effect("Fade Out")("Checkbox").value;
Duration=effect("Duration")("Slider");
if (time < (inPoint + outPoint)/2){
FI ? ease(time,inPoint,inPoint+.3,0,100) : value;
}else{
FO ? ease(time,outPoint - Duration*.1,outPoint,100,0) : value;
}
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.