Adobe InDesign CS2 (4.0) Object Model JS: GraphicLayer

InDesign CS2

Class

GraphicLayer

 A layer in a PSD image or PDF file.

QuickLinks

getElements, toSource, toSpecifier

Hierarchy

GraphicLayer | GraphicLayerOption
GraphicLayer
GraphicLayer

Properties

PropertyTypeAccessDescription
adjustmentLayerbool readonlyIf 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.
currentVisibilitybool r/wIf true, the layer is visible in the document.
exportStatebool readonlyIf true, the export state is on.
fxLayerbool readonlyIf 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.
graphicLayersGraphicLayers readonlyA collection of graphic layers.
hasExportStatebool readonlyIf true, the layer has an export state.
hasPrintStatebool readonlyIf true, the layer has a print state.
hasViewStatebool readonlyIf true, the layer has a view state.
idnumber readonlyThe unique ID of the GraphicLayer.
indexnumber readonlyThe index of the GraphicLayer within its containing object.
lockedbool readonlyIf true, the GraphicLayer is locked.
namestring readonlyThe name of the GraphicLayer.
originalVisibilitybool readonlyReturns 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.
parentGraphicLayerGraphicLayerOption readonlyThe parent of the GraphicLayer (a GraphicLayerOption or GraphicLayer).
printStatebool readonlyIf true, the print state is on.
propertiesObject r/wA property that allows setting of several properties at the same time.
sectionDividerLayerbool readonlyIf true, the layer is a section divider layer.
separatorLayerbool readonlyIf true, the layer is a separator layer.
viewStatebool readonlyIf true, the view state is on.

Methods

Instances

Array of Object getElements ()
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.

Element of

GraphicLayer.parent

Used in:

array of GraphicLayer GraphicLayers.itemByRange (from: any, to: any)

GraphicLayer GraphicLayers.nextItem (obj: GraphicLayer)

GraphicLayer GraphicLayers.previousItem (obj: GraphicLayer)

Return

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)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index