InDesign transformation
InDesign transformation
- Subject: InDesign transformation
- From: Tim Mansour <email@hidden>
- Date: Fri, 20 Aug 2010 08:12:44 +1000
Hi all,
I'm struggling a little with applying a transformation matrix to some InDesign CS4 elements. The following script is working, and places a grouped item from a library onto the page, then resizes it. However, an image which is part of the group is no longer correctly positioned within its frame so I'm obviously missing something to do with coordinates or anchors. Any tips would be appreciated!
set scale_transform to make transformation matrix with properties {horizontal scale factor:(1/scale_factor), vertical scale factor:(1/scale_factor)}
set placed_item to item 1 of (place asset asset "Key Number" of library my_library_name on new_doc)
transform placed_item in parent coordinates from top left anchor with matrix scale_transform
set p to geometric bounds of placed_item
set the geometric bounds of placed_item to {(item 1 of p) - (item 3 of p), 0, 0, (item 4 of p) - (item 2 of p)}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden