Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 62
ArtLayer sample Script
The following script opens all the files in the samples folder, creating one multi-layered document. Each
layer is pasted into one of four quadrants and given 50% transparency. Finally the layers are sorted by
name.
ArtLayer.jsx
resize
([horizontal]
[, vertical]
[, anchor])
number
number
AnchorPosition
Resizes the layer to the specified
dimensions (as a percentage of
its current size) and places it in
the specified position.
rotate
(angle
[, anchor])
number
AnchorPosition
Rotates rotates the layer around
the specified anchor point
(default:
MIDDLECENTER).
selectiveColor
(selectionMethod
[, reds]
[, yellows]
[, greens]
[, cyans]
[, blues]
[, magentas]
[, whites]
[, neutrals]
[, blacks])
AdjustmentReference
array of number
array of number
array of number
array of number
array of number
array of number
array of number
array of number
array of number
Modifies the amount of a
process color in a specified
primary color without affecting
the other primary colors.
Each color array must have four
values.
shadowHighlight
([shadowAmount]
[, shadowWidth]
[, shadowRadius]
[, highlightAmount]
[, highlightWidth]
[, highlightRadius]
[, colorCorrection]
[, midtoneContrast]
[, blackClip]
[, whiteClip])
number [0..100]
number [0.100]
number [0..2500]
number [0..100]
number [0..100]
number [0..2500]
number [-100..100]
number [-100..100]
number [0.000..50.000]
number [0.000..50.000]
Adjusts the range of tones in the
images shadows and highlights.
Amounts and widths are
percentage values. Radius
values are in pixels.
threshold
(level)
number [1..255]
Converts grayscale or color
images to high-contrast, B/W
images by converting pixels
lighter than the specified
threshold to white and pixels
darker than the threshold to
black.
translate
([deltaX]
[, deltaY])
UnitValue
UnitValue
Moves the layer the specified
amount (in the given unit)
relative to its current position.
unlink
()
Unlinks the layer.
Method Parameter type Returns What it does (Continued)