🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1573

Re: Findout Page coordinates of a frame.

#1573
From: Olav_Kvern
Date: Fri, 30 Jan 2009 19:36
9 lines
1299 bytes
Hi Alex,

CoordinateSpaces.pasteboardCoordinates is the global measurement system--that is, it extends behind all pages and all spreads, and it is always in points, regardless of your current units of measurement. Is that really what you want?

If you're working with objects that have not been transformed (scaled or rotated), then it's usually easier to work with geometricBounds, which returns the bounds of the object in current ruler units, in the form: y1, x1, y2, x2. If you set your ruler origin to page origin, then the values you get back will match those you see in the user interface (in the Control panel and the Transform panel). Is that what you're looking for?

Thanks,

Ole
Technical Details
Message-ID: <59b7bc35.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7bc35.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5b97fa43591bf10e
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Findout Page coordinates of a frame.
Message-ID: <59b7bc35.0@webcrossing.la2eafNXanI>
Date: Fri, 30 Jan 2009 11:36:17 -0800
References: <59b7bc35.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit