Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dropdown Opacity Expression on more than one item.

  • Dropdown Opacity Expression on more than one item.

    Posted by Bobby Clark on March 25, 2025 at 1:37 pm

    Usually when I’d like the opacity to turn on for a specific drop down item I will use this expression

    if(thisComp.layer(“COLOR CHANGE”).effect(“Dropdown Menu Control”)(“Menu”)==2){100}else{0}

    However, iId like the opacity to become 100 for other item numbers as well. I’ve tried a few things like add “or”

    if(thisComp.layer(“COLOR CHANGE”).effect(“Dropdown Menu Control”)(“Menu”)==2||3||6){100}else{0}

    but it’t not working. Any help?

    Dan Ebberts replied 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 25, 2025 at 3:33 pm

    Try this:

    m = thisComp.layer("COLOR CHANGE").effect("Dropdown Menu Control")("Menu");
    m == 2 || m == 3 || m == 6 ? 100 : 0

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