C
HAPTER
2: Photoshop Scripting Basics
Photoshop Object Model
15
Path Item
A drawing object, such as the outline of a
shape or a straight or curved line
Choose the path selection or pen tools
and draw a path with the mouse.
Channel
Pixel information about an image’s color.
Choose
Window > Channels
.
Art Layer
A layer class within a document that allows
you to work on one element of an image
without affecting other elements in the image.
Choose
Layer > New > Layer
or
Window > Layers
.
Layer Set
A collection of
Art
Layer
objects. Group is the
current name in the Photoshop UI. Layer Set
was the name used in an earlier version of
Photoshop. The Object name stays the same to
keep backward compatibility.
Choose
Layer > New > Group.
Layer Comp
A snapshot of a state of the layers in a
document.
Choose
Window > Layer Comp
. Then
select the New Layer Comp icon.
Document
Info
Metadata about a
Document
object.
N
OTE
:
Metadata is any data that helps to
describe the content or characteristics of a file,
such filename, creation date and time, author
name, the name of the image stored in the file,
etc.
Choose
File > File Info
.
Notifier
Notifies a script when an event occurs; the
event then triggers the script to execute. For
example, when a user clicks an OK button, the
notifier object tells the script what to do next.
Choose
File > Scripts > Script Events
Manager
.
Preferences
The application preference settings.
Choose
Edit > Preferences
in
Windows, or
Photoshop >
Preferences
in Mac OS.
History State
Stores a version of the document in the state
the document was in each time you saved it.
N
OTE
:
You can use a
History
State
object to
fill a
Selection
object or to reset the
document to a previous state.
Choose
Window > History
, and then
choose a history state from the History
palette.
Color Sampler Represents a color sampler in your document.
Choose the Color Sampler Tool, and
click in the document.
Count Item
Represents a counted item in the document.
Choose the Count Tool and click in the
document.
Measurement
Scale
Represents the measurement scale for your
document.
The Measurement Scale object cannot
be created, but you can change its
properties by using
Analysis >
Measurement Scale > Custom
.
Object name
Description
To create this object without using a
script