Adobe 23101335 - Photoshop - PC Manual page 73

Scripting guide
Hide thumbs Also See for 23101335 - Photoshop - PC:
Table of Contents

Advertisement

3.11.7 Loading and storing selections
Scripting Support exposes the functionality to store and load selections. Selections get stored
into channels and loaded from channels.The following examples will 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 ¬
VB:
selRef.Store docRef.Channels("My Channel"), psExtendSelection
JS:
selRef.store(docRef.channels["My Channel"], SelectionType.EXTEND);
To restore a selection that has been saved to a selection, use the load (Load/load) method as
shown below.
AS:
load selection of current document from channel "My Channel" of ¬
VB:
selRef.Load docRef.Channels("My Channel"), psExtendSelection
JS:
selRef.load (docRef.channels["My Channel"], SelectionType.EXTEND);
See section
paste selections.
Photoshop 7.0 Scripting Guide
current document combination type extended
current document combination type extended
3.16, "Clipboard interaction" on page 81
Scripting Photoshop
for examples on how to copy, cut and
3
Selections
73

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop 7.0

Table of Contents