PreferencesGraphicLayer

A layer in a PSD image or PDF file.

Instance Properties

Name Description Access
adjustmentLayer bool If true, the layer is an adjustment layer. Note: Must occur in the script before overriding the visibility state of the layer with a current visibility statement. read-only
currentVisibility bool If true, the layer is visible in the document. read-write
eventListeners EventListeners A collection of event listeners. read-only
events Events A collection of events. read-only
exportState bool If true, the export state is on. read-only
fxLayer bool If true, layer effects have been applied to the layer. Note: Must occur in the script before overriding the visibility state of the layer with a current visibility statement. read-only
graphicLayers GraphicLayers A collection of graphic layers. read-only
hasExportState bool If true, the layer has an export state. read-only
hasPrintState bool If true, the layer has a print state. read-only
hasViewState bool If true, the layer has a view state. read-only
id number The unique ID of the GraphicLayer. read-only
index number The index of the GraphicLayer within its containing object. read-only
isValid bool Returns true if the object specifier resolves to valid objects. read-only
locked bool If true, the GraphicLayer is locked. read-only
name string The name of the GraphicLayer. read-only
originalVisibility bool Returns the visibility setting set for the layer before the graphic file was imported. Note: Must occur in the script before overriding the visibility state with a current visibility statement. read-only
parent The parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer). read-only
printState bool If true, the print state is on. read-only
properties Object A property that allows setting of several properties at the same time. read-write
sectionDividerLayer bool If true, the layer is a section divider layer. read-only
separatorLayer bool If true, the layer is a separator layer. read-only
viewState bool If true, the view state is on. read-only

Methods

addEventListener(
eventType, handler ​[, captures])
 → EventListener
removeEventListener(
eventType, handler ​[, captures])
 → bool
toSource(
)
 → string
toSpecifier(
)
 → string
addEventListener(
eventType, handler ​[, captures=false])
 → EventListener
Adds an event listener.
eventType string The event type.
handler The event handler. Can accept: File or JavaScript Function.
captures bool This parameter is obsolete. (Optional)
getElements(
)
 → GraphicLayer
Resolves the object specifier, creating an array of object references.
removeEventListener(
eventType, handler ​[, captures=false])
 → bool
Removes the event listener.
eventType string The registered event type.
handler The registered event handler. Can accept: File or JavaScript Function.
captures bool This parameter is obsolete. (Optional)
toSource(
)
 → string
Generates a string which, if executed, will return the GraphicLayer.
toSpecifier(
)
 → string
Retrieves the object specifier.