Adobe Illustrator CS6 Type Library JS: Layer

Illustrator CS6

Class

Layer

 A layer.

QuickLinks

move, remove, removeAll, zOrder

Hierarchy

Object
Layer

Properties

PropertyTypeAccessDescription
artworkKnockoutKnockoutState:
KnockoutState.Unknown
KnockoutState.DISABLED
KnockoutState.ENABLED
KnockoutState.INHERITED
r/wIs the artwork used to create a knockout.
blendingModeBlendModes:
BlendModes.NORMAL
BlendModes.MULTIPLY
BlendModes.SCREEN
BlendModes.OVERLAY
BlendModes.SOFTLIGHT
BlendModes.HARDLIGHT
BlendModes.COLORDODGE
BlendModes.COLORBURN
BlendModes.DARKEN
BlendModes.LIGHTEN
BlendModes.DIFFERENCE
BlendModes.EXCLUSION
BlendModes.HUE
BlendModes.SATURATIONBLEND
BlendModes.COLORBLEND
BlendModes.LUMINOSITY
r/wThe mode used when compositing an object.
colorRGBColor r/wColor used when outlining artwork in this layer.
compoundPathItemsCompoundPathItems CompoundPathItem readonlyThe compound path artwork in this layer.
dimPlacedImagesbool r/wIs rendered as dimmed in this layer?
graphItemsGraphItems GraphItem readonlyThe graph art items in this layer.
groupItemsGroupItems GroupItem readonlyThe group items in this layer.
hasSelectedArtworkbool r/wIs any artwork in this layer selected? Setting this property to false deselects all artwork in the layer.
isIsolatedbool r/wIs the artwork isolated.
layersLayers Layer readonlyNested layers.
legacyTextItemsLegacyTextItems LegacyTextItem readonlyThe text frame items in this story.
lockedbool r/wIs the layer editable?
meshItemsMeshItems MeshItem readonlyThe mesh art items in this layer.
namestring r/wThe layer's name.
nonNativeItemsNonNativeItems NonNativeItem readonlyThe non-native art items in this layer.
opacitynumber r/wThe layer's opacity (between 0.0 and 100.0)
pageItemsPageItems PageItem readonlyAll the artwork in this layer.
parentObject readonlyThe object's container.
pathItemsPathItems PathItem readonlyThe path artwork in this layer.
placedItemsPlacedItems PlacedItem readonlyThe placed art items in this layer.
pluginItemsPluginItems PluginItem readonlyThe plugin art items in this layer.
previewbool r/wIs the layer rendered in preview mode?
printablebool r/wIs the layer printable?
rasterItemsRasterItems RasterItem readonlyThe raster art items in this layer.
slicedbool r/wIs the layer sliced (default: false)
symbolItemsSymbolItems SymbolItem readonlyThe symbol items in this layer.
textFramesTextFrameItems TextFrameItem readonlyThe text frame items in this layer.
typenamestring readonlyThe class name of the object.
visiblebool r/wIs the layer visible?
zOrderPositionInt32 readonlyThe drawing order of the layer.

Methods

Instances

Layer move (relativeObject: Object, insertionLocation: ElementPlacement)
Move the object.

ParameterTypeDescription
relativeObjectObject
insertionLocationElementPlacement

void remove ()
Deletes this object.

void removeAll ()
Deletes all elements.

void zOrder (zOrderCmd: ZOrderMethod)
Arranges the layer relative to other layers.

ParameterTypeDescription
zOrderCmdZOrderMethod:
ZOrderMethod.BRINGTOFRONT
ZOrderMethod.BRINGFORWARD
ZOrderMethod.SENDBACKWARD
ZOrderMethod.SENDTOBACK
How to arrange the layer.

Element of

Document.activeLayer

ExportOptionsFlash.backgroundLayers

PageItem.layer

Return

Layer Layer.move (relativeObject: Object, insertionLocation: ElementPlacement)

Layer Layers.add ()

Layer Layers.getByName (name: string)

Jongware, 25-Nov-2012 v3.0.3iContents :: Index