Adobe 23101335 Scripting Guide - Page 58
Layer objects
UPC - 718659152833
View all Adobe 23101335 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 58 highlights
Scripting Photoshop 3 Layer objects 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: docRef.flipCanvas(Direction.HORIZONTAL); 3.9 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" inherits 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 7.0" 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} end tell Photoshop 7.0 Scripting Guide 58