148
Example 29.2
If you need to apply multiple transformations to objects it is more efficient to use the matrix
suite than to apply the transformations one at a time. The following script demonstrates how to
combine multiple matrices together.
-- Scale, rotate, and translate all art in a document
tell application "Illustrator CS"
if (count page items in document 1) > 0 then
set matrixDef to ¬
get scale matrix horizontal scale 100.0 vertical scale 50.0
set matrixDef to ¬
concatenate rotation matrix matrixDef angle -45.0
set matrixDef to ¬
concatenate translation matrix matrixDef delta x 50.0 delta y -50.0
transform every page item in document 1 using matrixDef
end if
end tell
mesh item, mesh items
A gradient mesh art object or list of gradient mesh art objects
Note: This object class inherits all valid properties from the page item class.
Table 4.46 mesh item, mesh items — Properties
Property
properties
R/O
Value type
record
12 Aug 03
AppleScript Reference
What it is
All of the mesh item's properties
returned in a single record (properties
which are individually read-only remain
so in this record).