Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions On/Off expression link to a checkBox

  • On/Off expression link to a checkBox

    Posted by Pierre Josserand on June 6, 2019 at 8:56 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 < t)
    ease(time,t-fadeTime,t,100,0)
    else
    ease(time,t,t+fadeTime,0,100);
    }else
    value

    Pierre Josserand replied 6 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    June 8, 2019 at 8:38 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

  • Pierre Josserand

    June 8, 2019 at 4:51 pm

    Thanks a lot I’ll try it this week end

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy