GraphicLayer
A layer in a PSD image or PDF file.
Go to Property Listing | Method Listing
Methods:
addEventListener, getElements, removeEventListener, toSource, toSpecifier
Objects:
Boolean, EventListeners, Events, GraphicLayers, Number, Object, String
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
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/write |
If true, the layer is visible in the document. |
||
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
If true, the export state is on. |
||
readonly |
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. |
||
readonly |
A collection of graphic layers. |
||
readonly |
If true, the layer has an export state. |
||
readonly |
If true, the layer has a print state. |
||
readonly |
If true, the layer has a view state. |
||
readonly |
The unique ID of the GraphicLayer. |
||
readonly |
The index of the GraphicLayer within its containing object. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
If true, the GraphicLayer is locked. |
||
readonly |
The name of the GraphicLayer. |
||
readonly |
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. |
||
readonly |
The parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer). |
||
readonly |
If true, the print state is on. |
||
read/write |
A property that allows setting of several properties at the same time. |
||
readonly |
If true, the layer is a section divider layer. |
||
readonly |
If true, the layer is a separator layer. |
||
readonly |
If true, the view state is on. |
Method Listing
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
GraphicLayer getElements ()
Resolves the object specifier, creating an array of object references.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the GraphicLayer.
String toSpecifier ()
Retrieves the object specifier.
Object of
Event.parent
EventListener.parent
GraphicLayer.parent
MutationEvent.parent