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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 11

  • @wc_animation
    @wc_animation  11 หลายเดือนก่อน +8

    ❗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")}

  • @martinf.torres8086
    @martinf.torres8086 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

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

    • @wc_animation
      @wc_animation  11 หลายเดือนก่อน

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

  • @robertsommerlad3940
    @robertsommerlad3940 ปีที่แล้ว

    fantastic tutorial, thank you so much Winston!

    • @wc_animation
      @wc_animation  ปีที่แล้ว

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

  • @worryy
    @worryy 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน +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 11 หลายเดือนก่อน

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

  • @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!