JavaScript Scripting Reference
Methods
Method
duplicate
([relativeObject]
[, insertionLocation])
link
(with)
merge
()
move
(relativeObject,
insertionLocation)
remove
()
resize
([horizontal]
[, vertical]
[, anchor])
rotate
(angle
[, anchor])
translate
([deltaX]
[, deltaY])
unlink
()
Adobe Photoshop CS3
Parameter Type
Returns
LayerSet
object
(ArtLayer
or LayerSet)
ElementPlacement
object
(ArtLayer
or LayerSet)
ArtLayer
object
(ArtLayer
or LayerSet)
ElementPlacement
number (double)
number (double)
AnchorPosition
number (double)
AnchorPosition
UnitValue
UnitValue
JavaScript Object Reference
What it does
Creates a duplicate of the
object.
layerSet
Links the layer set with another
layer.
Merges the layerset; returns a
reference to the art layer created
by this method.
Moves the
object.
layerSet
Deletes the
object.
layerSet
Resizes all layers in the layer set to
to the specified dimensions (as a
percentage of its current size) and
places the layer set in the
specified position.
Rotates all layers in the layer set
around the specified anchor point
(default:
AnchorPosition.MIDDLECENTER
.
Moves the position relative to its
current position.
Note:
For more information
about the UnitValue type,
see the JavaScript Tools
Guide
Unlinks the layer set.
129
)