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

spot color infomation not shown in Document info objects

New Here ,
Nov 09, 2011 Nov 09, 2011

Copy link to clipboard

Copied

Hi,

In the eps file, I have checked the Document info-->Objects menu in that spot color mentioned as "NONE"(refer img1.jpg). But in the same eps file Document info-->"Spot color Objects" menu its shows E(CMYK)(refer img2.jpg) that is spot color name. Could you please advise me why this difference occurs. Also I need to get this spot color object name via javascript, how to get this infomation?. I have attached the screen shot for your references.

Thanks for looking into this,img1.JPGimg2.JPG

Maria prabudass

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

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
Adobe
Community Expert ,
Nov 09, 2011 Nov 09, 2011

Copy link to clipboard

Copied

Hi.

Your Objects are gradient object. Its not a spot object. so you can get color name, get to gradientStops properties like below:

app.activeDocument.selection[0].fillColor.gradient.gradientStops[0].color.spot.name;

Ten.

Votes

Translate

Translate

Report

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
New Here ,
Nov 10, 2011 Nov 10, 2011

Copy link to clipboard

Copied

Thanks for your help. Its working fine for pathItems. Could you please advise me how to get the same details(gradient spot information) for textframes.

Thanks for looking into this..

Votes

Translate

Translate

Report

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
Community Expert ,
Nov 10, 2011 Nov 10, 2011

Copy link to clipboard

Copied

Hi.

TextFrame color informations included under textPath property.

app.activeDocument.selection[0].textPath.fillColor.gradient.gradientStops[0].color.spot.name

If your selection is textFrames, add "textPath" after "selection[0]".

Ten.

Votes

Translate

Translate

Report

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
New Here ,
Nov 11, 2011 Nov 11, 2011

Copy link to clipboard

Copied

Thanks for you response and help. Above code is used for textPath. But i need to find out the information for  characters and characterAttributes. Could you please advise me.

Votes

Translate

Translate

Report

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
Community Expert ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

LATEST

You can get like below:

app.activeDocument.textFrames[0].characters[0]

    .fillColor.gradient.gradientStops[0].color.spot.name

Its gets first characters property in first textFrames in activeDocument.

Ten

Votes

Translate

Translate

Report

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