Adobe 23101335 - Photoshop - PC Manual page 63

Scripting guide
Hide thumbs Also See for 23101335 - Photoshop - PC:
Table of Contents

Advertisement

3.9.4 Applying styles to layers
Styles can be applied to layers from your scripts. The styles correspond directly to the styles in
the Photoshop Styles palette and are referenced by their literal string name. Here is an example
of how to set a layer style to the layer named "L1."
N
O T E
AS:
apply layer style art layer "L1" of current document using ¬
VB:
docRef.ArtLayers("L1").ApplyStyle "Puzzle (Image)"
JS:
docRef.artLayers["L1"].applyStyle("Puzzle (Image)");
3.9.5 Rotating layers
Use the rotate (Rotate/rotate) command on the layer to rotate the entire layer. Positive
integers rotate the layer clockwise. Negative integers rotate it counterclockwise.
AS:
rotate current layer of current document angle 45.0
VB:
docRef.ActiveLayer.Rotate 45.0
JS:
docRef.activeLayer.rotate(45.0);
Photoshop 7.0 Scripting Guide
The layer styles name is case sensitive.
:
"Puzzle (Image)"
Scripting Photoshop
Layer objects
3
63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop 7.0

Table of Contents