Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RGB values of Rectangle InDesign CS4 js

Participant ,
Aug 16, 2010 Aug 16, 2010

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

TOPICS
Scripting
403
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 16, 2010 Aug 16, 2010

This is want you want.

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

Shonky

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 16, 2010 Aug 16, 2010
LATEST

Got it, thank you.

Yulia

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines