EDOBE XDOM TPC Technical Information Page 12

  • Download
  • Add to my manuals
  • Print
  • Page
    / 68
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 11
CHAPTER 1: Introduction Changes in CS5 12
For details, see JavaScript Tools Guide.
Changes in CS5
This section lists changes made to the scripting object model to support features in Illustrator CS5.
Ruler origin
In previous releases, the artboard origin, the position with coordinates (0,0), was in the bottom left corner,
with positive X increments going left to right, and positive Y increments going bottom to top.
In Illustrator CS5, the artboard origin is defined to be the top left corner of the artboard. Positive X
increments still go left to right, but positive Y increments now go top to bottom.
To show rulers, choose View > Rulers > Show Rulers. Use the Info panel (Windows > Info) to inspect the
X/Y coordinates of a position.
To avoid breaking existing scripts, Illustrator scripting still uses the legacy coordinate system; that is, all
documents created through scripts use the legacy coordinate system. Documents that you create directly
in the UI use the new coordinate system. If your script operates on such a document, then in order for the
script to behave as it did in CS4, the script must translate the Y coordinate value for any position to -Y, and
the reverse when interpreting coordinate values from the document.
Enumeration
X A new enumeration for coordinate system used by Illustrator:
Z AppleScript — artboard coordinate system/document coordinate system
Z
JavaScript — CoordinateSystem
Z
VBScript — AiCoordinateSystem
X
A new enumeration for registration points for symbols:
Z AppleScript — N/A
Page view 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 67 68

Comments to this Manuals

No comments