Layer Objects - Adobe 23101764 - Photoshop CS - PC Manual

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

Advertisement

JS:
docRef.crop (new Array(10,20,40,50), 45, 20, 20, 72);
To flip the canvas horizontally:
AS: flip canvas current document direction horizontal
VB: docRef.FlipCanvas psHorizontal
JS:

3.10 Layer objects

Photoshop has 2 types of layers: an art layer that can contain image contents and a layer
set that can contain zero or more art layers. Scripts, likewise, have two types of layers: art
layer and layer set.
Both types of layers have common properties such as "visible." The common attributes are
placed in a general "layer" class that both "art layer" and "layer set" inherit from.
When you create a layer you must specify whether you are creating an art layer or a layer set.
The following examples show how to create an art layer filled with red at the beginning of the
current document
AS:
tell application "Adobe Photoshop CS"
end tell
Photoshop CS Scripting Guide
docRef.flipCanvas(Direction.HORIZONTAL);
make new art layer at beginning of current document ¬
with properties {name:"MyBlendLayer", blend mode:normal}
select all current document
fill selection of current document with contents ¬
{class:RGB color, red:255, green:0, blue:0}
Scripting Photoshop
Layer objects
3
72

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs

Table of Contents