-
Converting float to hexidecimal
Hello,
I’d like to set the source text of a Text Layer to the Hex value of a color control. The following code seems right, but the text field only reads zero. If I set the value to the var color without converting, I get a long float such as 0.86274516582489. Please help! Thank you!var color = thisComp.layer("ColorPicker").effect("Color Control")("Color")[0];
color.toString(16);