Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Multiple DropDown Menu (without overlapping layers)

  • Multiple DropDown Menu (without overlapping layers)

    Posted by Delphy Bee on August 19, 2022 at 12:35 pm

    Hello !
    I’m having an issue while i’m trying to bring multiple DropDown Menu to differents texts layers.
    So i created 2 dropdown menu. One for 4 differents versions of a text and one for the differents languages i’ll need.

    For each text version (here languages) i have this expression in the opacity :

    dropMenu = comp(“Menu option + Lang “).layer(“Menu option + Lang”).effect(“option”)(1).value;
    MenuLang = comp(“Menu option + Lang “).layer(“Menu option + Lang”).effect(“Lang”)(1).value;
    if(ManuLang == 5 ){100} else {0};
    if(dropMenu == 4 ){100} else {0};

    And for one text layer, where i need Source text to change i’ve got this one :

    dropMenu = comp(“Menu option + Lang “).layer(“Menu option + Lang”).effect(“option”)(1).value;
    optiontext = [“Word1″,”Word2”,”Word3 “,” “]

    optiontext[dropMenu-1]

    My issue is, when i change the language or the option in certains cases, the text are overlapping with the other languages.
    It’s like AfterEffects choose only one variable instead of take the two.

    Is there something to do ? 🙂

    Thanks a lot !

    Delphy Bee replied 4 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 19, 2022 at 2:06 pm

    Hard to say for sure, without seeing what you have, but I’m guessing that this:

    if(ManuLang == 5 ){100} else {0};
    if(dropMenu == 4 ){100} else {0};

    needs to be like this:

    if((ManuLang == 5 ) && (dropMenu == 4)){100} else {0};

  • Delphy Bee

    August 19, 2022 at 3:49 pm

    Oh, I feel bad for having ask such a newbie question 😅
    It seems now to work, Thank you so much !

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