Skip to main content
Participant
October 2, 2011
Question

How To Convert Illustrator's PlacedItem Matrix to Artboard Coordinates ?

  • October 2, 2011
  • 1 reply
  • 1958 views

Hi,

How can I convert this matrix to a one that actually transforms a PageItem in the document ? Seems like PlacedItem's matrix is defined in a very mysterious coordinate system that never been mentioned anywhere in the documentation.

regards

This topic has been closed for replies.

1 reply

Inspiring
October 2, 2011

Can you re-phrase your question I don't understand what you want to do here…?

utkualAuthor
Participant
October 2, 2011

I want to convert the PlacedItem::matrix to a local transformation matrix relative to the artboards coordinate space.

A typical placed item matrix

(a,b,c,d,tx,ty) = 0.8474169969558716 0.5309280157089233 0.5309280157089233 -0.8474169969558716 -2089.5380859375 10003.640625

but the bounds of the item are: 638.2664184570313,-194.9597625732422,783.7483520507813,-345.822021484375

as you can see the translations are extremely bigger than what it sould be, the matrix is obvously not defined at the same space with bounds(which is defined in artboard space).

My aim is to replace a PlacedItem with the original contents from another AI file(like embedding). To do that I need to transform copied elements to the exact same place of the PlacedItem, what I need is the matrix that I can apply to the elements from original file

CarlosCanto
Community Expert
Community Expert
October 5, 2011

you can use "Relink" to replace your PlacedItem with the contents of another Ai file, and it will go to the exact same place the PlacedItem was.