Adobe 26001360 Scripting Guide - Page 147
Valid Commands, Notes, Example 29.1, transform, identity, matrix, translation, scale, rotation
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
Adobe Illustrator CS Scripting Guide 147 Valid Commands • concatenate matrix • concatenate rotation matrix • concatenate scale matrix • concatenate translation matrix • equal matrices • get identity matrix • get rotation matrix • get scale matrix • get translation matrix • invert matrix • singular matrix Notes This class is used to define a record which contains the component values of an Illustrator transformation matrix. It is used for specifying and retrieving matrix information from an Illustrator document or from page items in a document. Matrices are used in conjunction with the transform command and as a property of a number of objects. A matrix specifies how to transform the geometry of an object. You can generate an original matrix using get identity matrix, get translation matrix, get scale matrix, or get rotation matrix. A matrix is a record containing the matrix values, not a reference to a matrix object. The matrix commands listed above operate on the values of a matrix record. If a command modifies a matrix, a modified matrix record is returned as the result of the command. The original matrix record passed to the command is not modified. Example 29.1 A matrix can be generated to effect a scale transformation using the get scale matrix command. -- Scale all art in a document to 50% vertical size tell application "Illustrator CS" if (count page items in document 1) > 0 then set scaleMatrix to get scale matrix horizontal scale 100.0 vertical scale 50.0 transform every page item in document 1 using scaleMatrix end if end tell 12 Aug 03