Article View: adobe.scripting.indesign
Article #17519Re: N-sided polygons
From: Olav Kvern
Date: Mon, 02 Jun 2003 17:25
Date: Mon, 02 Jun 2003 17:25
11 lines
1320 bytes
1320 bytes
John-- Actually, you set the number of sides on a polygon by setting the polygon preferences object for the document before you create the polygon. Polygon preferences includes both the number of sides and the star inset value. As Roberto notes, you can draw any shape by manipulating the path point locations, but, for regular polygons and star polygons, you might find working with polygon preferences a bit quicker. I also have some generic n-sided polygon drawing code around somewhere--which gets around a problem with using geometric bounds to set polygon sizes. I'll dig it up and post it. Thanks, Ole
Technical Details
Message-ID:
<1de95de9.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de95de9.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,57bbf4780398067c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-02 10:39:04 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: N-sided polygons Message-ID: <1de95de9.1@WebX.la2eafNXanI> Date: Mon, 2 Jun 2003 10:25:35 -0700 References: <1de95de9.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit