A layer in a PSD image or PDF file.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| adjustmentLayer | bool | 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. |
| currentVisibility | bool | r/w | If true, the layer is visible in the document. |
| exportState | bool | readonly | If true, the export state is on. |
| fxLayer | bool | 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 | GraphicLayers | readonly | A collection of graphic layers. |
| hasExportState | bool | readonly | If true, the layer has an export state. |
| hasPrintState | bool | readonly | If true, the layer has a print state. |
| hasViewState | bool | readonly | If true, the layer has a view state. |
| id | number | readonly | The unique ID of the GraphicLayer. |
| index | number | readonly | The index of the GraphicLayer within its containing object. |
| locked | bool | readonly | If true, the GraphicLayer is locked. |
| name | string | readonly | The name of the GraphicLayer. |
| originalVisibility | bool | 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. |
| parent | any | readonly | The parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer). |
| printState | bool | readonly | If true, the print state is on. |
| properties | Object | r/w | A property that allows setting of several properties at the same time. |
| sectionDividerLayer | bool | readonly | If true, the layer is a section divider layer. |
| separatorLayer | bool | readonly | If true, the layer is a separator layer. |
| viewState | bool | readonly | If true, the view state is on. |
Methods
Array of GraphicLayergetElements ()
Resolves the object specifier, creating an array of object references.
string toSource ()
Generates a string which, if executed, will return the GraphicLayer.
string toSpecifier ()
Retrieves the object specifier.
Used in:
GraphicLayers.previousItem (
obj:
GraphicLayer )
GraphicLayers.nextItem (
obj:
GraphicLayer )
Returned by:
Array of GraphicLayer GraphicLayer .getElements (
)
GraphicLayer GraphicLayers.anyItem (
)
Array of GraphicLayer GraphicLayers.everyItem (
)
GraphicLayer GraphicLayers.firstItem (
)
GraphicLayer GraphicLayers.item (
index:
any
)
GraphicLayer GraphicLayers.itemByID (
id:
number
)
GraphicLayer GraphicLayers.itemByName (
name:
string
)
Array of GraphicLayer GraphicLayers.itemByRange (
from:
any, to:
any
)
GraphicLayer GraphicLayers.lastItem (
)
GraphicLayer GraphicLayers.middleItem (
)
GraphicLayer GraphicLayers.nextItem (
obj:
GraphicLayer
)
GraphicLayer GraphicLayers.previousItem (
obj:
GraphicLayer
)