Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual page 63

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
Loading and Storing Selections
You can store
store/Store/store()
channel named
AS
store selection of current document into channel "My Channel" of ¬
current document combination type extended
VBS
selRef.Store docRef.Channels("My Channel"), 2
'2 indicates that the value of the constant psExtendSelection
'is 2 (psExtendSelection)
JS
selRef.store(docRef.channels["My Channel"], SelectionType.EXTEND)
To restore a selection that has been saved to a
AS
load selection of current document from channel "My Channel" of ¬
current document combination type extended
VBS
selRef.Load docRef.Channels("My Channel"), 2
'2 indicates that the value of the constant psExtendSelection
'is 2 (psExtendSelection)
JS
selRef.load (docRef.channels["My Channel"], SelectionType.EXTEND)
See section
and paste selections.
Working with Channel Objects
The
Channel
You can create, delete and duplicate channels or retrieve a channel's histogram and change its kind. See
'Creating New Objects in a Script' on page 37
your script.
You can set or get (that is, find out about) a
'Understanding and Finding Constants' on page 19
create a masked area channel.
Changing Channel Types
You can change the
demonstrate how to change a masked area channel to a selected area channel:
objects in, or load them from,
Selection
command/method of the
and extend the selection with any selection that is currently in that channel.
My Channel
'Understanding Clipboard Interaction' on page 66
object gives you access to much of the available functionality on Photoshop CS2 channels.
of a any channel except component channels. The following examples
kind
Photoshop CS2
Channel
object to store the current selection in a
Selection
object, use the
Channel
for information on creating a
object's type using the
Channel
for script samples that demonstrate how to
Scripting Photoshop CS2
objects.The following examples use the
load/Load/load()
for examples on how to copy, cut
Channel
property. See
kind
59
method.
object in

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents