Adobe 26001360 Scripting Guide - Page 259
equal matrices, exists, Example 88.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 259 highlights
Adobe Illustrator CS Scripting Guide 259 equal matrices Compares two matrices for equality. If equal, Returns returns a boolean which is true if the matrcies are equal. Table 4.122 equal matrices - Parameters Parameters What it is Objects supported matrix with matrix The first matrix for the comparison The second matrix for the comparison • matrix Returns boolean Example 88.1 -- This script compares 2 matrices and beeps if they are equal tell application "Illustrator CS" set someMatrix to get identity matrix set anotherMatrix to get identity matrix if (equal matrices someMatrix with anotherMatrix) then beep end tell exists Determines if an object exists, and returns true if it does. Table 4.123 exists - Parameters Parameters What it is object reference The object to test for existence Objects supported Any Illustrator object except application Returns boolean Example 89.1 -- Check if a document exists and beep twice if one does tell application "Illustrator CS" if exists document 1 then beep 2 end tell 12 Aug 03