-
Assigning RGB value to color property
After several hours of tinkering I need to ask for help. I have a color value that is defined in one layer using colorValue = hexToRgb(hexvalue). I want to set a color property of an expression controller in another layer with this value. I was trying thisComp.layer(“Null 1”).nameofproperty.Color(colorValue); but that doesn’t seem to work. I tried making var colorValue global by defining it in a marker and retrieving it with eval(), but no luck.
I’ve also approached the problem by using expressions in the Color property itself, using “colorValue” as input, but that doesn’t seem the right format (it’s not an array?).
What would be your best approach for my goal? I can’t do all the scripting in the Color property itself because the script generates multiple colours that are needed at different places in the comp.