Skip to main content
Known Participant
August 13, 2022
Question

How to retrieve drop shadow details?

  • August 13, 2022
  • 1 reply
  • 1532 views

Hi all , how to retrieve the details of drop shadow effects of the image in illustrator using script.

 

Thank you.

This topic has been closed for replies.

1 reply

AbpujarAuthor
Known Participant
August 13, 2022

Hi all, here I’ve attached the image, that image has been applied drop shadow , I want to retrieve the drop shadow details using script, can please anyone help me to get the solution.

 

Thank you.

m1b
Community Expert
Community Expert
August 13, 2022

Hi @Abpujar, as far as I know, you can't get the details of the drop shadow. You can set the drop shadow (using Live Effects), but once it is set, you cannot get it's details.

Maybe it would be possible to export the document as svg, then load the svg as text and derive the dropshadow details from the svg markup? I doubt it would work because it probably rasterizes the dropshadow. Maybe you could measure the dimensions of the rasterized dropshadow image and compare to the page item, and work out the size of the dropshadow? I doubt you could get an unambiguous result. Sorry not much hope from me. Maybe someone has an idea?

- Mark

AbpujarAuthor
Known Participant
August 14, 2022

Hi @m1b  thank you so much for the reply. We can apply drop shadow effect through script but how can we retrieve those details?? Please help me i didn't get any solution to retrieve drop shadow effect.