ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

On/Off expression link to a checkBox

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Pierre Josserand
On/Off expression link to a checkBox
on Jun 6, 2019 at 8:56:24 am

Hello everyone,

i just did a subtitle template with a resized text box in the background, and an opacity animation on the text at each keyframe ( Thanks to Dan Ebberts expression i found here). my only tiny problem is that i needed the text to fade on the key frame so i need to stop the expression when i'm animating, and check it back at the end, and i was wondering "can i checkbox the button to on/off the expression" ( i know it's only a few click more to do it but aren't we all lazy and optimized motion designer)

i'll join the opacity expression i used

so if anyone got a solution i'll be glad to hear your advice.
Thanks everyone

fadeTime = .3;

txt = text.sourceText;

if (txt.numKeys > 0){
t = txt.nearestKey(time).time;
if (time &lt; t)
ease(time,t-fadeTime,t,100,0)
else
ease(time,t,t+fadeTime,0,100);
}else
value


Return to posts index

Kalleheikki Kannisto
Re: On/Off expression link to a checkBox
on Jun 8, 2019 at 8:38:03 am

Like this should work:

fadeTime = .3;

effectOn = effect("Checkbox Control")("Checkbox");

txt = text.sourceText;

if (effectOn==true){
if (txt.numKeys > 0){
t = txt.nearestKey(time).time;
if (time < t)
ease(time,t-fadeTime,t,100,0)
else
ease(time,t,t+fadeTime,0,100);
}else
value}else
value


Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

Pierre Josserand
Re: On/Off expression link to a checkBox
on Jun 8, 2019 at 4:51:47 pm

Thanks a lot I'll try it this week end


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]