ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Checkbox Control

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ted Moore
Checkbox Control
on Mar 5, 2019 at 12:35:16 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}


Return to posts index

Oleg Pirogov
Re: Checkbox Control
on Mar 5, 2019 at 1:17:30 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}


Return to posts index

Ted Moore
Re: Checkbox Control
on Mar 5, 2019 at 1:40:53 am

yes, that worked. Thanks


Return to posts index

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