Hi all , how to retrieve the details of drop shadow effects of the image in illustrator using script.
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.
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?
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.
I think there is two ways to do that. But we need to remember that Ai adds raster effects to stroke.
Just draw a transparent rectangle on image with 0,5 pt stroke and add effect. that can mimic shadow effect.
Yes absolutely. and remember that dropshadow and many other effect are raster effect.
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>';
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 .
Anyone with the solution?