Article View: adobe.scripting.indesign
Article #8521Re: How to find the selected path point?
From: Dave_Saunders
Date: Fri, 06 Oct 2006 11:15
Date: Fri, 06 Oct 2006 11:15
13 lines
1098 bytes
1098 bytes
Sad to say, you can't detect which point is selected. Getting the location is easy after that.
Working with path points is a frustrating exercise. I keep finding myself either working out which point is which (by index) on the path or using logic like:
for (var j = myPoints.length - 1; j >= 0; j--) {
var myAnch = myPoints[j].anchor;
if (myAnch[1] > 18) {
myAnch[1] = myBL;
myPoints[j].anchor = myAnch
}
}
Dave
Technical Details
Message-ID:
<3bc1e3bb.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.germany.com!newsfeed.freenet.de!newsfeed.x-privat.org!spool.x-privat.org!webcrossingReferences:
<3bc1e3bb.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,298c69a8a2c97b0b X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: How to find the selected path point? Message-ID: <3bc1e3bb.0@webcrossing.la2eafNXanI> Date: Fri, 6 Oct 2006 04:15:13 -0700 References: <3bc1e3bb.-1@webcrossing.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news2.volia.net!news.germany.com!newsfeed.freenet.de!newsfeed.x-privat.org!spool.x-privat.org!webcrossing