Article View: adobe.scripting.indesign
Article #1389Re: Rotate around a coordinate
From: Olav_Kvern
Date: Thu, 12 Feb 2009 21:10
Date: Thu, 12 Feb 2009 21:10
15 lines
1324 bytes
1324 bytes
Hi Current Point,
The trouble here is that {4.25, 5.5} in pasteboard coordinates is going to be a location near the top of the *visible* pasteboard for the first spread of the document. The pasteboard you see around each spread is not the "pasteboard" referred to in "pasteboard coordinates." The "pasteboard coordinates" referred to in this case is the global coordinate system behind all of the spreads in the document.
But the transform method has an added parameter, "considering ruler units", that will do what you want. Something more like this should do the trick:
transform myFrame in pasteboard coordinates from {4.25, 5.5} with matrix myMatrix considering ruler units true
Thanks,
Ole
Technical Details
Message-ID:
<59b7e5f3.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7e5f3.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6bf5c8e7ffd70265 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Olav_Kvern@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.scripting.indesign Subject: Re: Rotate around a coordinate Message-ID: <59b7e5f3.0@webcrossing.la2eafNXanI> Date: Thu, 12 Feb 2009 13:10:58 -0800 References: <59b7e5f3.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit