-
Does anyone know how Ray Dynamic Color works?
I’ve always been baffled by the expressions that Ray Dynamic Color puts into a colour swatch. Somehow, with exactly the same expression, it can make a different colour appear in a colour swatch.
For example, I have a simple palette set up with two colours – blue and yellow. If I click the blue swatch in the Ray Dynamic Color panel, the expression it puts in is:
//01Ray Color 2.0
rayColorPalette = comp("Ray - Palette");
rayColorSwatch = Math.floor(value[2]*255);
try{ rayColorPalette.layer(1)(4)(rayColorSwatch)(1); }catch(e){ value; }…and if I click the yellow swatch, the expression does not change, but the colour does.
The layer that Ray adds to my comp does not change at all when I click the swatches.
I’m just curious if anyone out there knows how on earth this witchcraft works?!