Is it possible to add subpathItems to a existing pathItem?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Marko Posavec

Is it possible to add subpathItems to a existing pathItem?

Post by Marko Posavec »

I want to add a subPathItem to a path without deleting and recreating the path. Is it possible?

Or do I have to recreate the whole thing like this :
1. read points from the path I want to edit
2. delete it
3. create a new array in javascript
4. pass the array to the pathitems.add() method

Sorry for asking such a basic question but I didn't find a straight answer in the scripting manual or google

Thank you for your time

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

Is it possible to add subpathItems to a existing pathItem?

Post by Mike Hale »

You can not edit a path or subpath. All you can do is delete the whole path. So yes if you want to edit an existing path you must create a new one using some of the existing path data and replace the existing path with the newly created one.
Marko Posavec

Is it possible to add subpathItems to a existing pathItem?

Post by Marko Posavec »

Thank you for your quick reply