Copy link to clipboard
Copied
Hello,
Currently I am using the Group Selection Tool to select the outermost path of my vector art. Is there a way via a script or something that would allow me to do this faster and easier. Currently I am having to do this on a file with 89 vector shapes, so I am really hoping someone out there has a solution for me.
Thank you in Advance!
I figured out an action...
1. Select All
2. Copy
3. Lock
4. Paste In Back
5. Release Compound Path
6. Pathfinder - Merge
7. Swatches - Apply Swatch:
app.selection = null;
var compPaths = app.activeDocument.compoundPathItems;
for (var i = 0; i < compPaths.length; i++) {
compPaths[i].pathItems[0].selected = true;
}
Copy link to clipboard
Copied
I figured out an action...
1. Select All
2. Copy
3. Lock
4. Paste In Back
5. Release Compound Path
6. Pathfinder - Merge
7. Swatches - Apply Swatch:
Copy link to clipboard
Copied
You can try "Select" and "Objects" option under Select menu. But I think it depends on artwork. Can you share a screenshot?
Copy link to clipboard
Copied
app.selection = null;
var compPaths = app.activeDocument.compoundPathItems;
for (var i = 0; i < compPaths.length; i++) {
compPaths[i].pathItems[0].selected = true;
}
Copy link to clipboard
Copied
@femkeblanco I had to make 1 tweak to your code but it did the trick of selecting the outer paths.
compPaths[i].pathItems[1].selected = true;
app.selection = null;
var compPaths = app.activeDocument.compoundPathItems;
for (var i = 0; i < compPaths.length; i++) {
compPaths[i].pathItems[1].selected = true;
}