Copy link to clipboard
Copied
Hi All,
Is there any way to access the properties of effects applied via Effect->Stylize?
Let's say If I added a path item and apply drop shadow to it via Effect->Stylize->DropShadow.Will it be possible to get the Mode, X Offset, Y Offset etc. properties value using scripting?
Thanks for any help
Copy link to clipboard
Copied
Copy link to clipboard
Copied
about the only option is to manually create a Graphic Style.
Then you can apply this via a script.
var doc = app.activeDocument;
var sel = doc.selection[0];
var style = doc.graphicStyles.getByName('DS');
style.applyTo(sel);
Copy link to clipboard
Copied
Anyone with the solution?