Adds an event listener.
Object
GraphicLayer
A layer in a PSD image or PDF file.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Boolean | 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. | |
| Boolean | read/write | If true, the layer is visible in the document. | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| Boolean | readonly | If true, the export state is on. | |
| Boolean | 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. | |
| GraphicLayers |
readonly | A collection of graphic layers. | |
| Boolean | readonly | If true, the layer has an export state. | |
| Boolean | readonly | If true, the layer has a print state. | |
| Boolean | readonly | If true, the layer has a view state. | |
| Number | readonly | The unique ID of the GraphicLayer. | |
| Number | readonly | The index of the GraphicLayer within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| Boolean | readonly | If true, the GraphicLayer is locked. | |
| String | readonly | The name of the GraphicLayer. | |
| Boolean | 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. | |
| GraphicLayer | GraphicLayerOption | readonly | The parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer). | |
| Boolean | readonly | If true, the print state is on. | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| Boolean | readonly | If true, the layer is a section divider layer. | |
| Boolean | readonly | If true, the layer is a separator layer. | |
| Boolean | readonly | If true, the view state is on. |
Methods
→ GraphicLayer[]
Resolves the object specifier, creating an array of object references.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the GraphicLayer.
→ String
Retrieves the object specifier.
Object of 4
Properties elsewhere that hold a GraphicLayer.
Parameter of 3
Method parameters that accept a GraphicLayer.
Return 13
Methods that return a GraphicLayer.
GraphicLayer.getElements()GraphicLayers.[]()GraphicLayers.anyItem()GraphicLayers.everyItem()GraphicLayers.firstItem()GraphicLayers.item()GraphicLayers.itemByID()GraphicLayers.itemByName()GraphicLayers.itemByRange()GraphicLayers.lastItem()GraphicLayers.middleItem()GraphicLayers.nextItem()GraphicLayers.previousItem()