ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Checkbox-Expression for Solo-ing Layers in project

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tyler McNeill
Checkbox-Expression for Solo-ing Layers in project
on Jan 22, 2019 at 5:05:33 pm

Hi folks,

I found a few pretty cool tricks for the checkbox but not quite what I am looking for.

Basically I want to have a Layer (Adjustment Layer or else) in my main/render comp that has a checkbox. When toggled on I would want it to solo all layers in my subcomps that have a specific/same name.

Sounds easy enough, but I can't get it to work. Do you guys maybe have an idea?


Thanks very much in advance!


Return to posts index

Dan Ebberts
Re: Checkbox-Expression for Solo-ing Layers in project
on Jan 22, 2019 at 5:22:25 pm

All your sub comp layers would need an opacity expression like this:


cb = comp("Main Comp").layer("Adjustment Layer").effect("Checkbox Control")("Checkbox").value;
if (cb){
if (name == "The Name"){
value;
}else{
0;
}
}else{
value;
}




Dan



Return to posts index

Tyler McNeill
Re: Checkbox-Expression for Solo-ing Layers in project
on Jan 25, 2019 at 2:39:09 pm

Thank you so very much, Dan!

That helped a lot!


Return to posts index

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