This content has been marked as final.
Show 2 replies

1. Re: Rotate around a coordinate
(Olav_Kvern) Feb 12, 2009 1:10 PM (in response to (Current_Point))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 
2. Re: Rotate around a coordinate
(Current_Point) Feb 12, 2009 6:26 PM (in response to (Current_Point))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