AI CC 2015 JavaScript脚本手册

所需积分/C币:42 2018-10-05 12:28:54 2.02MB PDF

AI CC 2015 JavaScript脚本手册,用于学习编写JSX脚本,官方文档
Contents JavaScript object Reference∴∴…7 Application ··:···.·:.·····: Artboard 13 Artboards .14 Brush ..,.........................,.......................,...................,...........15 Brushes 16 Character Attributes Characters .... 21 Characterstyle 22 Characterstyles 23 CMYKColo 25 Colo 6 CompoundPathltem............................................ 27 CompoundPathltems∴ 31 Dataset Datasets∴ 34 Document :········· ·.:····::········::.:·:·· ..35 DocumentPreset 44 Documents ·· 45 EPSSaveOptions ,,46 ExportOptionsAutoCAD 48 ExportOptions Flash 50 ExportoptionSGIF 52 ExportOptionSJPEG ,,54 ExportOptions Photoshop.....,.... 56 ExportoptionsPNG& 58 ExportoptionsPNG24 0 ExportoptionsSVG 61 ExportoptionsTIFF .63 FXGSaveOptions 64 Gradient 65 GradientColor 67 Gradients 68 GradientStop 69 Contents GradientStops∴ ,70 GraphicStyle 2 GraphicStyles Graphite 74 Graphltems 77 Gray Color Groupltem..,............ 79 Groupltems .83 lllustratorSaveOptions 84 Image CaptureOptions.............. 86 Ink 87 88 Insertion Point ∴89 Insertion Points LabColor 91 92 ayers 95 Legacy Textltem LegacyTextltems............. 99 Lines 100 Matrix,∴ 翻D 101 Meshlte 102 Meshltems 105 NoColor ···:·:·····. ···········.······::·· 106 NonNativeltem 107 Nonnativeltems∴. ∴110 Openoptions,,,,,,,,,,,,,,,…111 penOptions AutoCAD OpenOptions FreeHand 113 OpenOptionsPhotosh 114 igeltem Pageltems 118 Pa 120 Paperl 121 ParagraphAttributes 122 Paragraphs 126 ParagraphStyle 127 Paragraph! 128 Contents 5 Pathltem ,130 Pathltems ,135 Path Point 137 Path Points∴ 138 Pattern 139 PatternColor ,,,,,,,,,,140 Patterns∴ 142 PDFFileOptions∴. 143 PDFSaveOptions ,144 PhotoshopFileOptions.........,............,............150 Placedltem… 151 Placedltems 155 Pluginltem.........................,................156 Pluginltems 159 PPDFile 160 PPDFilelnfo ,,,,,,,161 Preferences 163 Print ColorManagementoptions ·D着·非 ,,165 PrintcolorSeparationOptions.......... 166 Print CoordinateOptions∴.… ,,167 Printer ·:·.···.···...···.·::····.·:··:·.:·····:· 169 Printerlnfo 170 PrintFlattenerOptions 172 PrintFontoptions 174 PrintJobOptions 175 Printoptions 177 PrintPageMarksOptions................................... 179 PrintPaperOptions 180 PrintPostScriptOptions 181 Raster Effectoptions 182 Rasterltem 183 Rasterltems∴ 187 Rasterizeoptions∴ ...189 RGBColor ,190 Scree 191 ScreenInfo 192 Screen Spotunction ..193 Spot 194 Contents Spotcolor ·非鲁 196 Spots ,197 Story∴ 199 Storie5∴,201 Swatch 202 Swatches∴ 203 watch Group,,,,,,,,,,,,,,,,,, ,,204 Swatch Groups ...205 mbo 20 Symbolltem....... ····::·····:::····:··: ∴∴207 Symbolltems 210 Symbols TabStopInfo........................,...............213 ag 214 ags 216 TextOn 217 TextFonts 218 TextFrameltem,.....,.....,.....,...220 TextFrameltems∴ .224 TextPath 226 ExtrAnge ∴,228 TextRanges 230 Tracing objec 231 Tracing Options ............................................................................233 Variable 235 Variables 236 VieW∴ 237 Views 238 Words 239 Scripting Constants∴∴∴,241 1 JavaScript Object Reference This section presents all of the object classes in the type library. Each class listing includes the following: Proper ties of the class, including value type, read-only status, and an explanation Methods for the class. Constants and value types needed by the method are shown in bold face Required terms are shown in plain face. All items surrounded by brackets [ are optional Notes to explain special issues Sample code to help illustrate the syntax and typical workflow usage of the object class These examples are intended to be clear demonstrations of syntax, and do not show the best or most efficient way to construct a JavaScript script Error checking, for instance, is generally brief or missing However, the examples can be combined and expanded to make scripts with greater functionality CHAPTER 1: JavaScript Object Reference Application 8 Application The Adobe Illustrator@ application object, referenced using the pre-defined global app object, which contains all other Illustrator objects Application properties Property Value type What it is activeDocument Document The active(frontmost document in Illustrator. browserAvailable boolean Read-only. If true a web browser is available buildNumber string Read-only. The applications build number colorsettingslist biect Read-only. The list of color-settings files currently ailable fo coordinatesystem Coordinatesystem The coordinate system currently in use document or artboard defaultcolorSettings File Read-only. the default color-settings file for the current application locale documents Document s Read-only. The documents in the application flattenerpresetlist object Read-only the list of flattener style names currently available for use freeMemory number (long Read-only. The amount of unused memory (in bytes)within the Illustrator partition 1。cae s七 Read-only The application s locale name string Read-only The application s name(not related to the filename of the application file pasteRememberlayers boolean Read-only. If true, the paste operation maintains the layer structure path File Read-only. The file path to the application PDFPresetslist object Read-only. The list of preset PDF-options names available for use PPDFilelist object Read-only. The list of Ppd files currently available for use preferences Preferences llustrator's preference settings printerList array of printer Read-only. The list of installed printers printpresetslist bject Read-only. the list of preset printing-options names available for use scriptingversion string Read-only. The version of the Scripting plug-in CHAPTER 1: JavaScript Object Reference Application 9 Property Value type What it is e1ec七i。n array oT objects All currently selected objects in the active (frontmost) document startuppresetslist object Read-only the list of presets available for creating a new document tex七Fon七s Text Fonts Read-only the installed fonts tracingPresetlist array of string Read-only. The list of preset tracing-options names available for use typename string Read-only. The class name of the referenced bjec userInteractionLevel UserInteractionLevel What level of interaction with the user should be allowed when handling script commands versIOn string Read-only. The applications version visible boolean Read-only. If true, the application is visible Application methods Method Parameter type Returns What it does beep nothing Alerts the use concatenateMatrix Matrix Joins two matrices together. atrix Matrix secondMatrix) Matrix concatenaterotationmatrix Matrix Joins a rotation translation to a (matrix Matrix transformation matrix angle) number (double concatenatescaleMatrix Matrix Concatenates a scale translation to atrix Matrix a transformation matrix I scalex] number (double) scaley]) number (double concatenatetranslationMatrix Matrix Joins a translation to a (matrix Matrix transformation matrix L deltan number(double L delta] number (double convertSampleColor array of Converts a sample-component (sourceColorspace Image Colorspace Colorcamponents color from one color space to another destcolor space 工 mageColorspace colorconvertpurpose Colorconvertpurpose L, sourceHasAlpha] boolean [, destHasAlpha]) boolean copy nothing Copies current selection to the clipboard CHAPTER 1: JavaScript Object Reference Application 10 Method Parameter type Returns What it does cu七 nothing Cuts current selection to the clipboard deleteWorkspace( Boolean Deletes an existing workspace (workspaceName string getIdentityMatr Matrlx Returns an identity matrix getppDEi1e工nfo PPDFile Info Gets detailed file information for (name) string specified PPD file getPresetFileofType File Returns the full path to the (preset Type) DocumentPresetrype applications default document profile for the specified preset type getPresetsettings DocumentPreset Retrieves the tracing- option preset string settings from the template with a given preset name getR。 tationmatrix Mat¥ix Returns a transformation matrix (Langle] number (double containing a single rotation NOTE: Requires a value in degrees For example 30 rotates the object 30 degrees counterclockwise; -30 rotates the object 30 degrees clockwise getScaleMatrix Matrix Returns a transformation matrix (Scaler] number (double containing a single scale scaley]) number(double NOTE: Requires a value in percentage. For example, 60 scales the object to 60%of its original size; 200 doubles the object's ounds getScriptableHelpGroup variant Gets the scriptable help group object that represents the search widget in the app bar getrranslationMatrix Returns a transformation matrix (deltav] number (double) containing a single translation deltas u○⊥e NOTE: Requires a value in points For example, ( 100, 200) moves the object 100 pt. to the right and 200 pt up; a minus before each number moves the object left and doy invertMatrix Matrix Inverts a matrix (matrix) Matrix

...展开详情
img
zhgx998

关注 私信 TA的资源

上传资源赚积分,得勋章
相关内容推荐