Skip to main content
Adobe Photoshop Family

3 Messages

 • 

92 Points

Tue, Nov 7, 2017 5:07 PM

Closed

Delete all paths option

As a retoucher I use paths a lot. When my images are done I use Image Processor to export the images with a flatten action. After doing this I currently have to go into each image and delete all the paths individually on every image. It would be lovely if a "Delete All Paths" option would be available, so I also could record it do an action and process them out while drinking coffee.

This conversation has been merged. Please refer the main conversation:

Responses

114 Messages

 • 

1.8K Points

2 years ago

Try this script:

// remove all paths
if (documents.length > 0) {
docRef = activeDocument;
for (var i = docRef.pathItems.length-1 ; i >=0 ; i--) {
$.writeln(docRef.pathItems[i].kind);
docRef.pathItems[i].remove();
}
} else {
alert("There must be at least one open document to run this script!");
}

http://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html