Adobe Illustrator CS4 Type Library JS: Layer

Illustrator CS4

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 readonlyThe compound path artwork in this layer.
dimPlacedImagesbool r/wIs rendered as dimmed in this layer?
graphItemsGraphItems readonlyThe graph art items in this layer.
groupItemsGroupItems 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 readonlyNested layers.
legacyTextItemsLegacyTextItems readonlyThe text frame items in this story.
lockedbool r/wIs the layer editable?
meshItemsMeshItems readonlyThe mesh art items in this layer.
namestring r/wThe layer's name.
nonNativeItemsNonNativeItems readonlyThe non-native art items in this layer.
opacitynumber r/wThe layer's opacity (between 0.0 and 100.0)
pageItemsPageItems readonlyAll the artwork in this layer.
parentObject readonlyThe object's container.
pathItemsPathItems readonlyThe path artwork in this layer.
placedItemsPlacedItems readonlyThe placed art items in this layer.
pluginItemsPluginItems readonlyThe plugin art items in this layer.
previewbool r/wIs the layer rendered in preview mode?
printablebool r/wIs the layer printable?
rasterItemsRasterItems readonlyThe raster art items in this layer.
slicedbool r/wIs the layer sliced (default: false)
symbolItemsSymbolItems readonlyThe symbol items in this layer.
textFramesTextFrameItems readonlyThe text frame items in this layer.
typenamestring readonlyThe class name of the object.
visiblebool r/wIs the layer visible?
zOrderPositionint 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.[] (index: uint)

Layer Layers.add ()

Layer Layers.getByName (name: string)

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