ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Editable colors

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Juan López
Editable colors
on Aug 20, 2019 at 1:47:21 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


Posts IndexRead Thread 


Current Message Thread:
  • Editable colors by Juan López on Aug 20, 2019 at 1:47:21 pm





© 2019 CreativeCOW.net All Rights Reserved
[TOP]