Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual page 57

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
current document
Look up the
VBS
Set layer1Ref = docRef.ArtLayers.Add()
Set layer2Ref = docRef.ArtLayers.Add()
layer1Ref.Link layer2Ref.Layer
Look up
Link
Scripting Reference. Additionally, look up
JS
var layerRef1 = docRef.artLayers.add()
var layerRef2 = docRef.artLayers.add()
layerRef1.link(layerRef2)
Look up
link()
Scripting Reference. Additionally, look up
Applying Styles to Layers
Note:
This procedure corresponds directly to dragging a style from the Photoshop CS2 Styles palette to a
layer.
Your script can apply styles to an
style/ApplyStyle/applyStyle()
straight double quotes.
Note:
The layer style names are case sensitive.
Please refer to Photoshop CS2 Help for a list of styles and for more information about styles and the Styles
palette.
The following examples set the Puzzle layer style to the layer named "L1. "
AS
apply layer style art layer "L1" of current document using ¬
"Puzzle (Image)"
Look up the
AppleScript Scripting Reference.
VBS
docRef.ArtLayers("L1").ApplyStyle "Puzzle (Image)"
Look up
ApplyStyle
Scripting Reference.
JS
docRef.artLayers["L1"].applyStyle("Puzzle (Image)")
Look up
applyStyle()
JavaScript Scripting Reference.
command in the Adobe Photoshop CS2 AppleScript Scripting Reference.
link
in the Methods table of the
in the Methods table of the
ArtLayer
command in the "Commands" chapter of the Adobe Photoshop CS2
apply layer style
in the Methods table of the
in the Methods table of the
Photoshop CS2
object in the Adobe Photoshop CS2 Visual Basic
ArtLayer
in the Methods table of the
Add
object in the Adobe Photoshop CS2 JavaScript
ArtLayer
in the Methods table of the
add()
object. To apply a style in a script, you use the
command/method with the style's name as an argument enclosed in
ArtLayer
ArtLayer
Scripting Photoshop CS2
ArtLayers
ArtLayers
object in the Adobe Photoshop CS2 Visual Basic
object in the Adobe Photoshop CS2
53
object.
object.
apply layer

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents