Skip to main content
Inspiring
October 14, 2015
Question

How to access the properties of effects like drop shadow etc. from scripting?

  • October 14, 2015
  • 1 reply
  • 649 views

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

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
October 14, 2015

Hi _VG,

not the best answer, but an answer:

Re: drop shadow of the art item

Qwertyfly___
Legend
October 14, 2015

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);

Known Participant
August 30, 2022

Anyone with the solution?