srgampa
New Here
srgampa
New Here
Activity
‎Jan 17, 2024
02:14 AM
Hi Charu, The template I have a text with stroke and fill text. When I run app.executeComand('Find Fill & Stoke menu item"), the app.activedocument.defaultFillColor is working for text without any stroke but not to text with stroke and fill. Can you help me on this. Thanks.
... View more
‎Jan 17, 2024
01:59 AM
Hello Carlos, The result above refers to a object of data that contains the color data that are needed to be updated in the template. It looks like this: {"labelName":"Team Color 1","colorValue":"Atlas Blue (2380 C)","colorCode":"#1e2b4f","colorObjectFromXML":{"Name":"Atlas Blue","C":"79.7604322433472","M":"71.1238265037537","Y":"47.4525034427643","K":"40.9582644701004","Hex":"#1e2b4f","PMS":"2380 C","$$hashKey":null}} Thank you.
... View more
‎Jan 16, 2024
10:59 AM
I am trying to update colors of the above texts using : var _existSpot = app.activeDocument.swatches.getByName( result[index].colorValue ); var spotSwatch = app.documents[0].swatches.getByName( "$" + result[index].labelName ); app.activeDocument.defaultFillColor = spotSwatch.color; app.executeMenuCommand("Find Fill & Stroke menu item"); app.activeDocument.defaultFillColor = _existSpot.color; ----------------------------------------------------------------- But only the text with single color is changing but not text with strokes. can someone help me regarding the issue; Thanks. 🙂
... View more