Adobe 23101335 Scripting Guide - Page 68
Defining selections
UPC - 718659152833
View all Adobe 23101335 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 68 highlights
Scripting Photoshop 3 Selections AS: set current layer of current document to layer "Layer 1" of ¬ current document VB: docRef.ActiveLayer = docRef.Layers("Layer 1") JS: docRef.activeLayer = docRef.layers["Layer 1"]; See section 3.9.1, "Setting the Active layer" on page 61 for more information. 3.11.1 Defining selections To create a new selection, use the select method with a type of replaced (psReplaceSelection/SelectionType.REPLACED). The other selection types are diminished, extended and intersected. The diminished type will shrink the current selection, the extended selection type will grow the current selection, and the intersected type will find the intersection of the current selection and the new selection and replace the current selection with the intersection of the two. If there is no intersection between the selections, the new selection will be empty. If there is no current selection, the new selection will be the newly specified selection. Here are examples of how to replace the current selection: AS: select current document region {{ 5, 5}, {5, 100}, ¬ { 80, 100}, { 80, 5}} combination type replaced Photoshop 7.0 Scripting Guide 68