Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Editable colors

  • Posted by Juan López on August 20, 2019 at 1:47 pm

    I have this expression to change color by a slider.
    Now only you can edit when the value slider is 1, but if you change to value 2 or 3 it is impossible to edit.
    how can I do to make editable every color?

    Thank you

    CS = Math.round(comp("Main").layer("Controls").effect("Swatches")("Slider").value);
    tone = comp("Main").layer("Controls").effect("Color 01")("Color ");

    if (CS == 2)
    [0,204,255,0]/255
    else if (CS == 3)
    [255,150,56,0]/255
    else if (CS == 4)
    [255,168,0,0]/255
    else if (CS == 5)
    [255,0,0,0]/255
    else if (CS == 6)
    [255,241,178,0]/255
    else
    tone

    Andrei Popa replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    August 23, 2019 at 2:18 pm

    Do you have multiple color control effects on the layer “Controls”? Like “Color 01”, “Color 02”, “Color 03”? If yes, your expression should be like this.

    CS = Math.round(comp(“Main”).layer(“Controls”).effect(“Swatches”)(“Slider”).value);
    comp(“Main”).layer(“Controls”).effect(“Color 0″+CS)(“Color”);

    Andrei
    My Envato portfolio.

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