Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual page 58

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
Using the Text Item Object
You can change an existing
empty. Conversely you can change a
rasterizes the text in the layer object.
The
Text Item
create a new
/psTextLayer/ LayerKind.TEXT
To set or manipulate text in a text layer, you use the
also a property of the
Creating a Text Item Object
The following examples create an
layer.
AS
make new art layer in current document with properties ¬
{ kind: text layer }
VBS
set newLayerRef = docRef.ArtLayers.Add()
newLayerRef.Kind = 2
'2 indicates psTextLayer
JS
var newLayerRef = docRef.artLayers.add()
newLayerRef.kind = LayerKind.TEXT
See
'Photoshop CS2's Object Model' on page 8
ArtLayer
Also, look up the following:
The
kind
Scripting Reference and the Adobe Photoshop CS2 JavaScript Scripting Reference.
The
kind
AppleScript Scripting Reference.
Determining a Layer's Kind
The following examples use an
AS
if (kind of layerRef is text layer) then
VBS
If layerRef.Kind = 2 Then
'2 indicates psTextLayer
ArtLayer
object is a property of the
object and then set the art layer's
ArtLayer
object.
ArtLayer
objects and
objects.
TextItem
and
properties of the
TextItem
and
properties of the
text object
if
Photoshop CS2
object to a text layer, that is, a
object to an
Text Item
object. However, to create a new text layer, you must
ArtLayer
.
text object/TextItem/textItem/
object and then use the
ArtLayer
for information on the relationship between
object in the Adobe Photoshop CS2 Visual Basic
ArtLayer
Class art layer
statement to check whether an existing layer is a text layer.
Scripting Photoshop CS2
object, if the layer is
Text Item
object. This "reverse" procedure
ArtLayer
property to
kind/Kind/kind
property to convert it to a text
kind
in the Adobe Photoshop CS2
54
text layer
object, which is

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PHOTOSHOP CS 2.0 - SCRIPTING GUIDE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Photoshop cs2

Table of Contents