JavaScript Scripting Reference
LayerComp
A snapshot of a state of the layers in a document (can be used to view different page layouts or
compostions).
Note:
Because the
layerComp
The following example uses correct syntax to set the comment property value for a
object named
activeDocument.layerComp("myLayerComp").comment = "View from shoreline"
The following example, which uses an upper case L in the object name, is incorrect:
activeDocument.LayerComp("myLayerComp").comment = "View from shoreline"
Properties
Property
appearance
comment
name
parent
position
selected
typename
visibility
Methods
Method
apply
()
recapture
()
Adobe Photoshop CS3
class is also a property of the
LayerComp
, rather than the class name,
:
myLayerComp
Value Type
boolean
string
string
object (Document)
boolean
boolean
string
boolean
Parameter Type
Document
, in your code.
LayerComp
What it is
Read-write. Indicates whether to use
layer appearance (layer styles) settings.
Read-write. A description of the layer
comp.
Read-write. The name of the layer comp.
Read-write. The
container.
Read-write. Indicates whether to use
layer position.
Read-only. Indicates whether the layer
comp is currently selected.
Read-only. The class name of the
referenced
Read-write. Indicates whether to use
layer visibility settings .
Returns
What it does
Applies the layer comp to the document.
Recaptures the current layer state(s) for
this layer comp.
JavaScript Object Reference
object, you use the property name,
LayerComp
object's
layerComp
object.
layerComp
124