-
What’s wrong with this non random color array picking expression?
I am getting syntax error and I am pretty sure it’s either the double bracket or the slider value didn’t get translated when putting into options?
Thanks.
R1=thisComp.layer("color").effect("R1")("Slider");
G1=thisComp.layer("color").effect("G1")("Slider");
B1=thisComp.layer("color").effect("B1")("Slider");
options = [[R1],[G1],[B1], 255], [0, 255, 0, 255], [0, 0, 255, 255]];
seedRandom(index, true);
r = Math.floor(random(3));
options[r]/255;