-
Color Array on Fill effect assigned to Slider
How do I get this to work?
if sliderValue is 0, color value in colors[0] is assigned to Fill -> Color.
if sliderValue is 1, color value in colors[1] is assigned, etc…colors = [[0/255,0/255,0/255,255/255],[128255,128/255,129/255,255/255],[114/255,25/222,26/255,255/255],[12/255,62/255,0/255,255/255]]; //etc...
sliderValue = Math.floor(comp("mainComp").layer("COLOR_ADJUSTMENT").effect("Slider Control")("Slider"))).value;
value = colors[sliderValue];/Terje