Invert Clipping Path Script
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Invert Clipping Path Script
- This topic has 4 replies, 2 voices, and was last updated 7 years, 10 months ago by Clippingpath Desh.
-
AuthorPosts
-
-
July 15, 2014 at 4:53 am #69516rydesignMember
I have 1000’s of images with inconsistant clipping paths. Sometimes they come in fine some times they need me to go in to the clipping path options and invert. Is there a script out there that could let me do this so I could apply “Invert Clipping Path” as a keyboard shortcut. It would be a huge time saver for me as it is an on going headache in multiple projects every month.
-
July 15, 2014 at 5:55 am #69517rydesignMember
Looking in to scripting it myself now but… I have to learn. I want it to Invert the Paths of selected Items. Trying to gather all the Scripting Items I need. I would be up for someone to hold my hand through the process. Now just to figure out the syntax… Opening some other scripts to try and figure this out.
For selecting multiple Items – SelectionOptions.ADD_TO
To choose which path – ClippingPathType.PHOTOSHOP_PATH
To invert the path – invertPath-
May 9, 2016 at 7:46 pm #84722Clippingpath DeshMember
https://clippingpathdesh.com/
[email protected]
Best price and 100% satisfaction guaranty for high quality clipping path, remove background from image, drop shadow, retouching, image optimization for web use, raster to vector and other Photoshop services!
-
-
July 15, 2014 at 8:03 am #69519rydesignMember
Fond a script JonWare did for me a while ago and added some stuff. Now it applies the Photoshop Path how do I get it to invert the applied path?—
for (i=0; i<app.selection.length; i++)
{
try {
app.selection[i].images[0].clippingPath.appliedPathName = app.selection[i].images[0].clippingPath.photoshopPathNames[0];
app.selection[i].images[0].clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH;
} catch (e)
{
// not interested if there is none
}
} -
July 16, 2014 at 12:24 pm #69537rydesignMember
BAM… Done
for (i=0; i<app.selection.length; i++)
{
try {
app.selection[i].images[0].clippingPath.appliedPathName = app.selection[i].images[0].clippingPath.photoshopPathNames[0];
app.selection[i].images[0].clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH;
app.selection[i].images[0].clippingPath.invertPath = 1;
} catch (e)
{
}
}
-
-
AuthorPosts
- You must be logged in to reply to this topic.