Answered
How to select Objects outside Artboard ?
Hi!
how can I select all Objects outside the Artboard?
ps: I don't want to delete them, so no "removeArtboardFluff" function, I want to use them...
THX!!
Hi!
how can I select all Objects outside the Artboard?
ps: I don't want to delete them, so no "removeArtboardFluff" function, I want to use them...
THX!!
I don't know why it would not work. Try the conventional way. (This presumes one artboard and is for items completely outside the artboard.)
app.selection = null;
var doc = app.activeDocument;
var items = doc.pageItems;
for (var i = items.length - 1; i > -1; i--) {
var b1 = items[i].geometricBounds;
var b2 = doc.artboards[0].artboardRect;
if ((b1[2] < b2[0] || b1[0] > b2[2]) ||
(b1[3] > b2[1] || b1[1] < b2[3])) {
items[i].selected = true;
}
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.