Hi, thanks for your help but I’m not sure if I’ve done this correctly.
The initial hex colour in the text layer is “ff0000” (red) but after implementing the code as below, the resultant colour ends up being a hex value of #2C3C7A (a luminous green).
Have I done anything wrong here?
Thanks for the assistance!
hex_edited is the text layer (initally written as ff0000):
"0x" + thisComp.layer("hex_edited").text.sourceText;
Colour Control Expression:
hexColor = thisComp.layer("hex_edited").text.sourceText;
r = (hexColor >> 16)/255;
g = ((hexColor & 0x00ff00) >> 8)/255;
b = (hexColor & 0xff)/255;
hsl = rgbToHsl([r,g,b,1]);