Adobe 26001360 Scripting Guide - Page 284
translate, Table 4.152, translate - Parameters
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 284 highlights
284 AppleScript Reference Experiment with different choices for the about parameter to see what the results are for each setting. Example 109.1 -- This script skews an object 45 degrees to the right horizontally -- by generating a rotation matrix and setting the appropriate matrix values tell application "Illustrator CS" set baseMatrix to get rotation matrix angle 45.0 set mvalue_b of baseMatrix to 0 transform page item 1 of document 1 using baseMatrix end tell translate Moves one or more page items from their existing position in a document to a new position defined by relative coordinates. Table 4.152 translate - Parameters Parameters What it is Objects supported page item [delta x real] [delta y real] [transforming objects boolean] [transforming fill patterns boolean] [transforming fill gradients boolean] [transforming stroke patterns boolean] The page item object(s) you want to translate The horizontal coordinate of the new position The vertical coordinate of the new position If true, the object positions and orientations should be affected by the translate If true, the fill patterns should be affected by the translate • compound path item • group item • mesh item • page item • path item • path point • placed item • plugin item • raster item • text frame If true, the fill gradients should be affected by the translate If true, the stroke patterns should be affected by the translate Returns nothing 12 Aug 03