Copy link to clipboard
Copied
Hi,
I need to return RGB values of a Rectangle, but the fillColor gives me swatch ID only. How I can converted to RGB values.
var myRGB = myFrame.fillColor;
myRed = myRGB.id;
Thank you for your help.
Yulia
Copy link to clipboard
Copied
This is want you want.
var myRGB = myFrame.fillColor;
myRed = myRGB.colorValue;
alert (myRed)
Shonky
Copy link to clipboard
Copied
Got it, thank you.
Yulia
Find more inspiration, events, and resources on the new Adobe Community
Explore Now