Adobe 26001360 Scripting Guide - Page 409
Notes, Example 57.1, Table 5.111, PluginItem - Methods Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 409 highlights
Adobe Illustrator CS Scripting Guide 409 Table 5.111 PluginItem - Methods (Continued) Method Returns What it does Transform( transformationMatrix As Matrix, [changePositions As Boolean], [changeFillPatterns As Boolean], [changeFillGradients As Boolean], [changeStrokePattern As Boolean], [changeLineWidths As Double], [transformAbout As AiTransformation]) Nothing Translate( [deltaX As Double], [deltaY As Double], [transformObjects As Boolean], [transformFillPatterns As Boolean], [transformFillGradients As Boolean], [transformStrokePatterns As Boolean]) Nothing ZOrder( zOrderCmd As AiZOrderMethod) Nothing Transforms the art object by applying a transformation matrix Repositions the art object relative to the current position, where deltaX is the horizontal offset and deltaY is the vertical offset Arranges the art object's position in the stacking order of the group or layer (Parent) of this object Notes Plug-in items cannot be created from a script, but can be copied and pasted. Example 57.1 This example demonstrates how to create a new PluginItem by copying an existing PluginItem. Dim appRef As New Illustrator.Application Dim frontDocument As Illustrator.Document Dim pluginArt As Illustrator.PluginItem Set frontDocument = appRef.ActiveDocument If (frontDocument.PluginItems.Count > 0) Then Set pluginArt = frontDocument.PluginItems(1) pluginArt.Copy frontDocument.Paste Else MsgBox "There is no plug-in art in the front document" 12 Aug 03