Oh.. You are right. Thanks. There was a “)” too many in the code as well. Updated below in case someone wants to use it.
However, this expression is very picky and breaks if the sliderValue goes out of range.
Is there a way to prevent that?
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 = colors[sliderValue];
/Terje