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,
Maria prabudass
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.
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..
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.
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.
Copy link to clipboard
Copied
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