Article View: adobe.illustrator.featurerequests
Article #243Re: Select all lines/objects > or < size
From: James_Talmage
Date: Thu, 05 Mar 2009 18:08
Date: Thu, 05 Mar 2009 18:08
19 lines
1283 bytes
1283 bytes
Something similar in Javascript (therefore cross-platform):
var docRef=activeDocument;
var minLength=prompt("Deselect Paths shorter than:",5);
for(i=docRef.selection.length-1;i>=0;i--){
var currItem=docRef.selection[i];
//alert(currPath.length>minLength);
if(currItem.typename!="PathItem"||currItem.length>minLength){
currItem.selected=false;
redraw();
}
}
The script assumes you already have a selection. It then DEselects whatever selected items are not PathItems or have a path length of greater than the minimum specified by the user (in points).
This is a first-off rough. It can be easily altered or elaborated.
JET
Technical Details
Message-ID:
<59b82246.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b82246.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 1108e1,eef98db0c5efa627 X-Google-Attributes: gid1108e1,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: James_Talmage@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.illustrator.featurerequests Subject: Re: Select all lines/objects > or < size Message-ID: <59b82246.2@webcrossing.la2eafNXanI> Date: Thu, 5 Mar 2009 10:08:25 -0800 References: <59b82246.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit