Skip to main content
Inspiring
August 17, 2010
Question

RGB values of Rectangle InDesign CS4 js

  • August 17, 2010
  • 1 reply
  • 416 views

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

This topic has been closed for replies.

1 reply

Inspiring
August 17, 2010

This is want you want.

var myRGB = myFrame.fillColor;
myRed = myRGB.colorValue;
alert (myRed)

Shonky

YuliaartAuthor
Inspiring
August 17, 2010

Got it, thank you.

Yulia