Skip to content

NonNativeItem

nonNativeItems[index]

A non-native artwork item.


nonNativeItems[index].artworkKnockout

Is this object used to create a knockout, and if so, what kind of knockout.

KnockoutState


nonNativeItems[index].blendingMode

The blend mode used when compositing an object.

BlendModes


nonNativeItems[index].controlBounds

The bounds of the object including stroke width and controls.

Array of 4 numbers; read-only.


nonNativeItems[index].editable

If true, this item is editable.

Boolean; read-only.


nonNativeItems[index].geometricBounds

The bounds of the object excluding stroke width.

Array of 4 numbers; read-only.


nonNativeItems[index].height

The height of the group item.

Number (double).


nonNativeItems[index].hidden

If true, this item is hidden.

Boolean.


nonNativeItems[index].isIsolated

If true, this object is isolated.

Boolean.


nonNativeItems[index].layer

The layer to which this item belongs.

Layer; read-only.


nonNativeItems[index].left

The position of the left side of the item (in points, measured from the left side of the page).

Number (double).


nonNativeItems[index].locked

If true, this item is locked.

Boolean.


nonNativeItems[index].name

The name of this item.

String.


nonNativeItems[index].note

The note assigned to this item.

String.


nonNativeItems[index].opacity

The opacity of the object.

Range: 0.0 to 100.0.

Number (double).


nonNativeItems[index].parent

The parent of this object.

Document, Layer or GroupItem; read-only.


nonNativeItems[index].position

The position (in points) of the top left corner of the NonNativeItems[index] object in the format [x, y]. Does not include stroke weight.

Array of 2 numbers.


nonNativeItems[index].selected

If true, this item is selected.

Boolean.


nonNativeItems[index].sliced

If true, the item sliced.

Default: false.

Boolean.


nonNativeItems[index].tags

The tags contained in this item.

Tags; read-only.


nonNativeItems[index].top

The position of the top of the item (in points, measured from the bottom of the page).

Number (double).


nonNativeItems[index].typename

The class name of the referenced object.

String; read-only.


nonNativeItems[index].uRL

The value of the Adobe URL tag assigned to this item.

String.


nonNativeItems[index].visibilityVariable

The visibility variable bound to the item.

Variable


nonNativeItems[index].visibleBounds

The visible bounds of the item including stroke width.

Array of 4 numbers; read-only.


nonNativeItems[index].width

The width of the item.

Number (double).


nonNativeItems[index].wrapInside

If true, the non-native-item object should be wrapped inside this object.

Boolean.


nonNativeItems[index].wrapOffset

The offset to use when wrapping text around this object.

Number (double).


nonNativeItems[index].wrapped

If true, wrap non-native-item objects around this object (non-native-item object must be above the object).

Boolean.


nonNativeItems[index].zOrderPosition

The position of this item within the stacking order of the group or layer (parent) that contains the item.

Number; read-only.


nonNativeItems[index].duplicate([relativeObject] [,insertionLocation])

Creates a duplicate of the selected object.

ParameterTypeDescription
relativeObjectObject, optionalObject to duplicate to
insertionLocationElementPlacement, optionalLocation to insert element

NonNativeItem


nonNativeItems[index].move(relativeObject, insertionLocation)

Moves the object.

ParameterTypeDescription
relativeObjectObjectObject to move element within
insertionLocationElementPlacement, optionalLocation to move element to

NonNativeItem


nonNativeItems[index].remove()

Deletes this object.

Nothing.


nonNativeItems[index].removeAll()

Deletes all elements in this collection.

Nothing.


nonNativeItem.resize(
scaleX,
scaleY
[,changePositions]
[,changeFillPatterns]
[,changeFillGradients]
[,changeStrokePattern]
[,changeLineWidths]
[,scaleAbout]
)

Scales the art item where scaleX is the horizontal scaling factor and scaleY is the vertical scaling factor. 100.0 = 100%.

ParameterTypeDescription
scaleXNumber (double)Horizontal scaling factor
scaleYNumber (double)Vertical scaling factor
changePositionsBoolean, optionalWhether to effect art object positions and orientations
changeFillPatternsBoolean, optionalWhether to transform fill patterns
changeFillGradientsBoolean, optionalWhether to transform fill gradients
changeStrokePatternBoolean, optionalWhether to transform stroke patterns
changeLineWidthsNumber (double), optionalThe amount to scale line widths
scaleAboutTransformation, optionalThe point to use as anchor, to transform about

Nothing.


nonNativeItem.rotate(
angle
[,changePositions]
[,changeFillPatterns]
[,changeFillGradients]
[,changeStrokePattern]
[,rotateAbout]
)

Rotates the art item relative to the current rotation. The object is rotated counter-clockwise if the angle value is positive, clockwise if the value is negative.

ParameterTypeDescription
angleNumber (double)The angle amount to rotate the element
changePositionsBoolean, optionalWhether to effect art object positions and orientations
changeFillPatternsBoolean, optionalWhether to transform fill patterns
changeFillGradientsBoolean, optionalWhether to transform fill gradients
changeStrokePatternBoolean, optionalWhether to transform stroke patterns
rotateAboutTransformation, optionalThe point to use as anchor, to transform about

Nothing.


nonNativeItem.transform(
transformationMatrix
[,changePositions]
[,changeFillPatterns]
[,changeFillGradients]
[,changeStrokePattern]
[,changeLineWidths]
[,transformAbout]
)

Transforms the art item by applying a transformation matrix.

ParameterTypeDescription
transformationMatrixMatrixTransformation matrix to apply
changePositionsBoolean, optionalWhether to change Positions
changeFillPatternsBoolean, optionalWhether to change Fill Patterns
changeFillGradientsBoolean, optionalWhether to change Fill Gradients
changeStrokePatternBoolean, optionalWhether to change Stroke Pattern
changeLineWidthsNumber (double), optionalThe amount to scale line widths
transformAboutTransformation, optionalThe point to use as anchor, to transform about

Nothing.


nonNativeItem.translate(
[deltaX]
[,deltaY]
[,transformObjects]
[,transformFillPatterns]
[,transformFillGradients]
[,transformStrokePatterns]
)

Repositions the art item relative to the current position, where deltaX is the horizontal offset and deltaY is the vertical offset.

ParameterTypeDescription
deltaXNumber (double), optionalHorizontal offset
deltaYNumber (double), optionalVertical offset
transformObjectsBoolean, optionalWhether to transform Objects
transformFillPatternsBoolean, optionalWhether to transform Fill Patterns
transformFillGradientsBoolean, optionalWhether to transform Fill Gradients
transformStrokePatternsBoolean, optionalWhether to transform Stroke Patterns

Nothing.


nonNativeItems[index].zOrder(zOrderCmd)

Arranges the art item’s position in the stacking order of the group or layer (parent) of this object.

ParameterTypeDescription
zOrderCmdZOrderMethodStacking order arrangement method

Nothing.