Adobe 26001360 Scripting Guide - Page 268
import variables, invert matrix, Notes, Example 96.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 268 highlights
268 AppleScript Reference import variables Import a variable library from a file of saved variables. Table 4.135 import variables - Parameters Parameters What it is Objects supported from [file] file specification [appending as boolean] The file to import the variables from, specified as a string containing the full file path or an alias. When using a string, precede the string with the term file. If true, the variables should be appended; defaults to true. • variables Returns invert matrix Returns an inverted matrix. Table 4.136 invert matrix - Parameters Parameters What it is Objects supported matrix The matrix to invert • matrix Returns matrix Notes If a matrix is singular, it cannot be inverted. You can use the singular matrix command to test if a matrix is singular. Example 96.1 -- This script gets the inverse matrix of a 50% vertical scale matrix -- When applied, the inverse matrix scales the object 200% vertically tell application "Illustrator CS" set transformMatrix to get scale matrix vertical scale 50.0 set transformMatrix to invert matrix transformMatrix transform page item 1 of document 1 using transformMatrix end tell 12 Aug 03