Delete all paths option

  • 1
  • Idea
  • Updated 2 months ago
Merged

This conversation has been merged. Please reference the main conversation: Photoshop: Ability to delete multiple paths

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.
Photo of Marius Viken

Marius Viken

  • 2 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Stephen Marsh

Stephen Marsh

  • 98 Posts
  • 19 Reply Likes
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
(Edited)

This conversation is no longer open for comments or replies.