• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
2

Relink or update placed image to apply photoshop clipping path with Javascript

Advocate ,
May 01, 2024 May 01, 2024

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.
Screenshot 2024-05-01 at 8.33.08ā€ÆAM.png
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?

TOPICS
Scripting

Views

133

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , May 01, 2024 May 01, 2024

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

Votes

Translate

Translate
Advocate ,
May 01, 2024 May 01, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines