Adobe 23101764 Scripting Guide - Page 91
Rotating selections, Loading and storing selections
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 91 highlights
Scripting Photoshop 3 Selections 3.12.6 Rotating selections You can rotate either the contents of a selection or the selection boundary itself. The first set of examples below shows how to rotate an existing selection 45 degrees. AS: rotate selection of current document angle 45 VB: docRef.Selection.Rotate(45); JS: app.activeDocument.selection.rotate(45); To rotate the boundary of an existing selection: AS: rotate boundary selection of current document angle 45 VB: docRef.Selection.RotateBoundary(45); JS: app.activeDocument.selection.rotateBoundary(45); 3.12.7 Loading and storing selections Photoshop exposes the functionality to store and load selections. Selections get stored into channels and loaded from channels.The following examples store the current selection into a channel named "My Channel" and extend the selection with any selection that is currently in that channel. AS: store selection of current document into channel "My Channel" of ¬ current document combination type extended VB: selRef.Store docRef.Channels("My Channel"), psExtendSelection JS: selRef.store(docRef.channels["My Channel"], SelectionType.EXTEND); Photoshop CS Scripting Guide 87