Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Loop on dropdown menu slider.

  • Dan Ebberts

    February 8, 2023 at 7:48 am

    How many different outcomes are there? Is each picture handled differently, or can you consolidate some of the logic?

  • Smet Kira

    February 8, 2023 at 7:53 am

    I select an image from the drop down menu. For example, if I select the first picture in the menu, then the transparency of all pictures except this one is reduced to zero. If I select the 5th picture, then all except the 5th picture have a transparency of 0. Due to the large number of pictures, a long expression comes out, which must be inserted into the transparency of each picture. I would like to do this with a loop. It’s possible?

  • Dan Ebberts

    February 8, 2023 at 8:06 am

    If you put the control layer at the bottom of your layer stack so that the pictures are layers 1 – 30, then this opacity expression should work for each of the pictures:

    menu = thisComp.layer("Control").effect("Dropdown Menu Control")("Menu").value;
    index == menu ? 100 : 0
  • Smet Kira

    February 8, 2023 at 8:18 am

    it’s amazing and so simple. Thank you Den. You best!

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