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.

CarlosCanto
Community Expert
Community Expert
August 15, 2022

you could save the file "uncompressed", then open the file with a text editor to see all details. Yes, you could do this with javascript as well.

 

AbpujarAuthor
Known Participant
August 22, 2022

Hi all, we can apply angle and distance in drop shadow effect, can please anyone help me , how to apply angle and distance value of drop shadow effect here ?

 

xmlstring = '<LiveEffect name="Adobe Drop Shadow"><Dict data="R vert 7 R opac 0.75 B pair 1 R dark 100 R horz 14.655 R blur 5 I blnd 1 I csrc 0 "/></LiveEffect>';

 

app.documents[0].selection[0].applyEffect(xmlstring) ;


Oooops!! I was comparing it with indesign. In indesign we can adjust the angle of the drop shadow using angle, but in illustrator we can adjust offset value to change the angle of the drop shadow.

 

Is there any solution to Retrieve Drop Shadow details through script? I didn’t find any solution .