Copy link to clipboard
Copied
Is there a way to update a placed image to apply the Photoshop Clipping Path via Javascript? I need to use the path associated with a placed image in a script, but can't be sure that it was placed with the path, as with the import options dialog below.
I have tried setting app.epsImportPreferences.epsFrames to true, and using placedImage.relink() with both a filepath and a file object, but it doesn't apply the path. I also tried placedImage.reinitLink(), but wasn't able to get that to work either.
Is this not possible with Javascript?
I finally figured it out. After a long time yesterday trying everything I could find, I came across this, which works to embed the path:
myGraphic.clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH
Copy link to clipboard
Copied
I finally figured it out. After a long time yesterday trying everything I could find, I came across this, which works to embed the path:
myGraphic.clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH