Discussion:
Illustrator CS4 Millimeters to Pixel
(too old to reply)
s***@adobeforums.com
2009-03-30 08:50:52 UTC
Permalink
Hey my problem is converting mm to px in scripting.
I write mm values of path items to the script and change ai file preferences (units and display performance) all units to millimeters
but ai is get my value a px and convert to the mm so
my 1000mm x 1000mm box is displaies 352.78mm x 352.78mm after script done.
how can i say illustrator to "my value is mm and don't play on it (mm->px->mm)"

Do you know anything about that?
J***@adobeforums.com
2009-03-31 11:56:56 UTC
Permalink
Illustrator's underlying unit of measure is points. Everything else is factored from that. Values you enter in scripts are therefore in points, and your script needs to do the conversions to other units(just as angles in Javascript-type languages are usually assumed to be radians, and have to be converted to degrees).

JET
M***@adobeforums.com
2009-03-31 09:55:28 UTC
Permalink
No idea, but I would think that you need to implement your own formula to figure in the document resolution. Apparently, internal operations seem to always occur in point/ pica/ em, hence the mismatch.

Mylenium

Loading...