Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script to bind one text layer to several checkboxes

  • Script to bind one text layer to several checkboxes

    Posted by Dmitriy Khomyakov on February 9, 2019 at 7:05 pm

    Hello friends!
    I need help. I need to bind one text layer to several checkboxes.
    Help write a script
    ————————————————————————————-
    Привет друзья!
    Мне нужна помощь. Мне нужно привязать один текстовій слой к нескольким чекбоксам.
    Помогите написать скрипт

    if (thisComp.layer("ChangeTheme").effect("PRIME")("Checkbox")==1) 100 else 0;

    John Westlen replied 7 years, 5 months ago 3 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    February 9, 2019 at 8:26 pm

    What do you mean by “bind”? If one checkbox is on, or if all of them are on?

    Dan

  • Dmitriy Khomyakov

    February 9, 2019 at 8:32 pm

    I want the text layer to be turned on when turning on either the second, or the fifth, or the ninth checkbox

  • Dmitriy Khomyakov

    February 9, 2019 at 8:39 pm


    Does not work

  • Dan Ebberts

    February 9, 2019 at 8:40 pm

    It’s an expression for the Scale property.

    Dan

  • Dan Ebberts

    February 9, 2019 at 8:42 pm

    I’d set it up like this:

    L = thisComp.layer(“Control”);
    cb2 = L.effect(“Checkbox Control 2”)(“Checkbox”).value;
    cb5 = L.effect(“Checkbox Control 5”)(“Checkbox”).value;
    cb9 = L.effect(“Checkbox Control 9”)(“Checkbox”).value;
    (cb2 || cb5 || cb9) ? 100 : 0

    Dan

  • John Westlen

    February 9, 2019 at 8:50 pm

    Hello Dan! Im sorry to bother I posted this earlier i’m having alot of trouble with it. It’s a code you wrote from another thread but i have one issue on it ( i edited it) that i really would like help with. Thanks!

    Here’s the thread https://forums.creativecow.net/thread/227/40935

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