Adobe 65015634 Scripting Guide - Page 15

Choose the Color Sampler Tool, and, The Measurement Scale object cannot

Page 15 highlights

CHAPTER 2: Photoshop Scripting Basics Photoshop Object Model 15 Object name Description To create this object without using a script 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 Choose Layer > New > Layer or you to work on one element of an image Window > Layers. without affecting other elements in the image. 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. Choose File > File Info. NOTE: 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. 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. NOTE: 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 Represents the measurement scale for your Scale document. The Measurement Scale object cannot be created, but you can change its properties by using Analysis > Measurement Scale > Custom.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87

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