🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1248

Re: Rotate around a coordinate

#1248
From: Current_Point
Date: Fri, 13 Feb 2009 02:26
16 lines
1526 bytes
Thanks for the reply Olav, and the heads up on using "considering ruler units".

I think I've figured this out. Two details...

If the "from" value is a list of 2 integers (as in an x/y coordinate), the numbers seem to always be processed as points (even with the "considering ruler units" option, and the ruler units being decimal inches).

Even more odd, the 0/0 origin is the exact center of the page. So if you transform as...

transform myFrame in pasteboard coordinates from {0, 0} with matrix myMatrix

...the object will rotate around the center of the page. So an object in the top half of the page requires a negative Y value (as in {0, -72}) and so on.

Very strange, but I am getting predictable results now. I would usually use the fixed values (center anchor, etc) which work as expected, but using a coordinate value can be useful for drawing objects around a center point (like numbers on a clock).

Thanks again
Rik
Technical Details
Message-ID: <59b7e5f3.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <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: Current_Point@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Rotate around a coordinate
Message-ID: <59b7e5f3.1@webcrossing.la2eafNXanI>
Date: Thu, 12 Feb 2009 18:26:35 -0800
References: <59b7e5f3.-1@webcrossing.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit