【AE Tutorial】Dropdown Menu to Change Color in Seconds! (After Effects Expression)

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 10

  • @wc_animation
    @wc_animation  8 місяців тому +7

    ❗IMPORTANT❗For the AE CC2024 or later, 03:37 replace "if" with "else if", except the first "if":
    if (a == 1){effect("Color Control")("Color")}
    else if (a == 2){effect("Color Control 2")("Color")}
    else if (a == 3){effect("Color Control 3")("Color")}

  • @wc_animation
    @wc_animation  Рік тому

    This is the first AE tutorial in my channel. Please comment and let me know what After Effects or animation problems do you have. I may consider making a video to answer that next! Thanks for watching!

  • @robertsommerlad3940
    @robertsommerlad3940 10 місяців тому

    fantastic tutorial, thank you so much Winston!

    • @wc_animation
      @wc_animation  10 місяців тому

      Thank you very much! If you want any After Effects tutorial, feel free to post here!

  • @martinf.torres8086
    @martinf.torres8086 9 місяців тому +1

    Hi, this is what I looking for, great tutorial! I have an issue, I followed the steps several times, but it didn't work, I just keep seeing same warning (not defined value used on expression).

    • @wc_animation
      @wc_animation  9 місяців тому

      Hi, could you describe a bit in details and share the whole expression?

    • @wc_animation
      @wc_animation  8 місяців тому

      Hi please refer to the pinned message at the top for solution.

  • @worryy
    @worryy 8 місяців тому +1

    Hi there! This tutorial is perfect for what i'm trying to do. However, i keep getting an expression error:
    "Error at Line 1
    Undefined value used in expression (could be an out of range array subscript?)"
    My expression is written as follows:
    a = comp("MAIN").layer("MASTER CONTROLLER").effect("Dropdown Menu Control")("Menu")
    if (a == 1){effect("Color Control 1")("Color")}
    if (a == 2){effect("Color Control 2")("Color")}
    if (a == 3){effect("Color Control 3")("Color")}
    if (a == 4){effect("Color Control 4")("Color")}
    if (a == 5){effect("Color Control 5")("Color")}
    Strangely enough, the last colour control in the expression seems to work, but the rest feedback in the above error?

    • @wc_animation
      @wc_animation  8 місяців тому +1

      Thank you for your question. This tutorial is made in older version of AE. I just tried again in AE CC2024 and I have the same problem as you. After doing research, I figure it out the solution. Please try to replace the 2nd to 5th "if" with "else if".
      if (a==1).....
      else if (a==2)....
      else if (a==3)....
      else if (a==4)....
      else if (a==5)....

    • @worryy
      @worryy 8 місяців тому

      @@wc_animation Great thank you for the quick response! Got everything working now :)