Adobe 26001360 - Illustrator CS - PC Manual page 147

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
Valid Commands
• concatenate matrix
• concatenate rotation matrix
• concatenate scale matrix
• concatenate translation matrix
• equal matrices
• get identity 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
• get rotation matrix
• get scale matrix
• get translation matrix
• invert matrix
• singular matrix
12 Aug 03
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents