Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Checkbox Control

  • Posted by Ted Moore on March 5, 2019 at 12:35 am

    I’m setting an checkbox control control to turn off a text layer, the layer with the expression is nested in the main comp.

    my problem is I’m duplicating(versioning) the main comp and the main comp name will be change to a different names. Is there a generic name I can use for “main comp” so I won’t have keep updating the expression.

    for example, I have a text layer that is nested in the main comp which uses name “Comp 501,”. I’m making several duplicates of the comp, so there will be a Comp 502, Comp 503, Comp 504, and so on. I just need a generic name for the “main comp.” so I don’t have to go into every comp and retype the new comp name, is there an easier work around for this.

    the expression is on the opacity.

    if(comp("Comp 501").layer("Null 1").effect("Checkbox Control")("Checkbox")> 0) {100} else {0}

    Ted Moore replied 7 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Oleg Pirogov

    March 5, 2019 at 1:17 am

    Perhaps I’m missing something, but is it thisComp you are looking for? Like
    if(thisComp.layer("Null 1").effect("Checkbox Control")("Checkbox")> 0) {100} else {0}

  • Ted Moore

    March 5, 2019 at 1:40 am

    yes, that worked. Thanks

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