Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Checkbox-Expression for Solo-ing Layers in project

  • Checkbox-Expression for Solo-ing Layers in project

    Posted by Tyler Mcneill on January 22, 2019 at 5:05 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!

    Tyler Mcneill replied 7 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 22, 2019 at 5:22 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

  • Tyler Mcneill

    January 25, 2019 at 2:39 pm

    Thank you so very much, Dan!

    That helped a lot!

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