NonNativeItem
NonNativeItem
Section titled “NonNativeItem”nonNativeItems[index]
Description
Section titled “Description”A non-native artwork item.
Properties
Section titled “Properties”NonNativeItem.artworkKnockout
Section titled “NonNativeItem.artworkKnockout”nonNativeItems[index].artworkKnockout
Description
Section titled “Description”Is this object used to create a knockout, and if so, what kind of knockout.
NonNativeItem.blendingMode
Section titled “NonNativeItem.blendingMode”nonNativeItems[index].blendingMode
Description
Section titled “Description”The blend mode used when compositing an object.
NonNativeItem.controlBounds
Section titled “NonNativeItem.controlBounds”nonNativeItems[index].controlBounds
Description
Section titled “Description”The bounds of the object including stroke width and controls.
Array of 4 numbers; read-only.
NonNativeItem.editable
Section titled “NonNativeItem.editable”nonNativeItems[index].editable
Description
Section titled “Description”If true
, this item is editable.
Boolean; read-only.
NonNativeItem.geometricBounds
Section titled “NonNativeItem.geometricBounds”nonNativeItems[index].geometricBounds
Description
Section titled “Description”The bounds of the object excluding stroke width.
Array of 4 numbers; read-only.
NonNativeItem.height
Section titled “NonNativeItem.height”nonNativeItems[index].height
Description
Section titled “Description”The height of the group item.
Number (double).
NonNativeItem.hidden
Section titled “NonNativeItem.hidden”nonNativeItems[index].hidden
Description
Section titled “Description”If true
, this item is hidden.
Boolean.
NonNativeItem.isIsolated
Section titled “NonNativeItem.isIsolated”nonNativeItems[index].isIsolated
Description
Section titled “Description”If true
, this object is isolated.
Boolean.
NonNativeItem.layer
Section titled “NonNativeItem.layer”nonNativeItems[index].layer
Description
Section titled “Description”The layer to which this item belongs.
Layer; read-only.
NonNativeItem.left
Section titled “NonNativeItem.left”nonNativeItems[index].left
Description
Section titled “Description”The position of the left side of the item (in points, measured from the left side of the page).
Number (double).
NonNativeItem.locked
Section titled “NonNativeItem.locked”nonNativeItems[index].locked
Description
Section titled “Description”If true
, this item is locked.
Boolean.
NonNativeItem.name
Section titled “NonNativeItem.name”nonNativeItems[index].name
Description
Section titled “Description”The name of this item.
String.
NonNativeItem.note
Section titled “NonNativeItem.note”nonNativeItems[index].note
Description
Section titled “Description”The note assigned to this item.
String.
NonNativeItem.opacity
Section titled “NonNativeItem.opacity”nonNativeItems[index].opacity
Description
Section titled “Description”The opacity of the object.
Range: 0.0 to 100.0.
Number (double).
NonNativeItem.parent
Section titled “NonNativeItem.parent”nonNativeItems[index].parent
Description
Section titled “Description”The parent of this object.
Document, Layer or GroupItem; read-only.
NonNativeItem.position
Section titled “NonNativeItem.position”nonNativeItems[index].position
Description
Section titled “Description”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.
NonNativeItem.selected
Section titled “NonNativeItem.selected”nonNativeItems[index].selected
Description
Section titled “Description”If true
, this item is selected.
Boolean.
NonNativeItem.sliced
Section titled “NonNativeItem.sliced”nonNativeItems[index].sliced
Description
Section titled “Description”If true
, the item sliced.
Default: false
.
Boolean.
NonNativeItem.tags
Section titled “NonNativeItem.tags”nonNativeItems[index].tags
Description
Section titled “Description”The tags contained in this item.
Tags; read-only.
NonNativeItem.top
Section titled “NonNativeItem.top”nonNativeItems[index].top
Description
Section titled “Description”The position of the top of the item (in points, measured from the bottom of the page).
Number (double).
NonNativeItem.typename
Section titled “NonNativeItem.typename”nonNativeItems[index].typename
Description
Section titled “Description”The class name of the referenced object.
String; read-only.
NonNativeItem.uRL
Section titled “NonNativeItem.uRL”nonNativeItems[index].uRL
Description
Section titled “Description”The value of the Adobe URL tag assigned to this item.
String.
NonNativeItem.visibilityVariable
Section titled “NonNativeItem.visibilityVariable”nonNativeItems[index].visibilityVariable
Description
Section titled “Description”The visibility variable bound to the item.
NonNativeItem.visibleBounds
Section titled “NonNativeItem.visibleBounds”nonNativeItems[index].visibleBounds
Description
Section titled “Description”The visible bounds of the item including stroke width.
Array of 4 numbers; read-only.
NonNativeItem.width
Section titled “NonNativeItem.width”nonNativeItems[index].width
Description
Section titled “Description”The width of the item.
Number (double).
NonNativeItem.wrapInside
Section titled “NonNativeItem.wrapInside”nonNativeItems[index].wrapInside
Description
Section titled “Description”If true
, the non-native-item object should be wrapped inside this object.
Boolean.
NonNativeItem.wrapOffset
Section titled “NonNativeItem.wrapOffset”nonNativeItems[index].wrapOffset
Description
Section titled “Description”The offset to use when wrapping text around this object.
Number (double).
NonNativeItem.wrapped
Section titled “NonNativeItem.wrapped”nonNativeItems[index].wrapped
Description
Section titled “Description”If true
, wrap non-native-item objects around this object (non-native-item object must be above the object).
Boolean.
NonNativeItem.zOrderPosition
Section titled “NonNativeItem.zOrderPosition”nonNativeItems[index].zOrderPosition
Description
Section titled “Description”The position of this item within the stacking order of the group or layer (parent
) that contains the item.
Number; read-only.
Methods
Section titled “Methods”NonNativeItem.duplicate()
Section titled “NonNativeItem.duplicate()”nonNativeItems[index].duplicate([relativeObject] [,insertionLocation])
Description
Section titled “Description”Creates a duplicate of the selected object.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
relativeObject | Object, optional | Object to duplicate to |
insertionLocation | ElementPlacement, optional | Location to insert element |
Returns
Section titled “Returns”NonNativeItem.move()
Section titled “NonNativeItem.move()”nonNativeItems[index].move(relativeObject, insertionLocation)
Description
Section titled “Description”Moves the object.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
relativeObject | Object | Object to move element within |
insertionLocation | ElementPlacement, optional | Location to move element to |
Returns
Section titled “Returns”NonNativeItem.remove()
Section titled “NonNativeItem.remove()”nonNativeItems[index].remove()
Description
Section titled “Description”Deletes this object.
Returns
Section titled “Returns”Nothing.
NonNativeItem.removeAll()
Section titled “NonNativeItem.removeAll()”nonNativeItems[index].removeAll()
Description
Section titled “Description”Deletes all elements in this collection.
Returns
Section titled “Returns”Nothing.
NonNativeItem.resize()
Section titled “NonNativeItem.resize()”nonNativeItem.resize( scaleX, scaleY [,changePositions] [,changeFillPatterns] [,changeFillGradients] [,changeStrokePattern] [,changeLineWidths] [,scaleAbout])
Description
Section titled “Description”Scales the art item where scaleX
is the horizontal scaling factor and scaleY
is the vertical scaling factor. 100.0 = 100%.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
scaleX | Number (double) | Horizontal scaling factor |
scaleY | Number (double) | Vertical scaling factor |
changePositions | Boolean, optional | Whether to effect art object positions and orientations |
changeFillPatterns | Boolean, optional | Whether to transform fill patterns |
changeFillGradients | Boolean, optional | Whether to transform fill gradients |
changeStrokePattern | Boolean, optional | Whether to transform stroke patterns |
changeLineWidths | Number (double), optional | The amount to scale line widths |
scaleAbout | Transformation, optional | The point to use as anchor, to transform about |
Returns
Section titled “Returns”Nothing.
NonNativeItem.rotate()
Section titled “NonNativeItem.rotate()”nonNativeItem.rotate( angle [,changePositions] [,changeFillPatterns] [,changeFillGradients] [,changeStrokePattern] [,rotateAbout])
Description
Section titled “Description”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.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
angle | Number (double) | The angle amount to rotate the element |
changePositions | Boolean, optional | Whether to effect art object positions and orientations |
changeFillPatterns | Boolean, optional | Whether to transform fill patterns |
changeFillGradients | Boolean, optional | Whether to transform fill gradients |
changeStrokePattern | Boolean, optional | Whether to transform stroke patterns |
rotateAbout | Transformation, optional | The point to use as anchor, to transform about |
Returns
Section titled “Returns”Nothing.
NonNativeItem.transform()
Section titled “NonNativeItem.transform()”nonNativeItem.transform( transformationMatrix [,changePositions] [,changeFillPatterns] [,changeFillGradients] [,changeStrokePattern] [,changeLineWidths] [,transformAbout])
Description
Section titled “Description”Transforms the art item by applying a transformation matrix.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
transformationMatrix | Matrix | Transformation matrix to apply |
changePositions | Boolean, optional | Whether to change Positions |
changeFillPatterns | Boolean, optional | Whether to change Fill Patterns |
changeFillGradients | Boolean, optional | Whether to change Fill Gradients |
changeStrokePattern | Boolean, optional | Whether to change Stroke Pattern |
changeLineWidths | Number (double), optional | The amount to scale line widths |
transformAbout | Transformation, optional | The point to use as anchor, to transform about |
Returns
Section titled “Returns”Nothing.
NonNativeItem.translate()
Section titled “NonNativeItem.translate()”nonNativeItem.translate( [deltaX] [,deltaY] [,transformObjects] [,transformFillPatterns] [,transformFillGradients] [,transformStrokePatterns])
Description
Section titled “Description”Repositions the art item relative to the current position, where deltaX
is the horizontal offset and deltaY
is the vertical offset.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
deltaX | Number (double), optional | Horizontal offset |
deltaY | Number (double), optional | Vertical offset |
transformObjects | Boolean, optional | Whether to transform Objects |
transformFillPatterns | Boolean, optional | Whether to transform Fill Patterns |
transformFillGradients | Boolean, optional | Whether to transform Fill Gradients |
transformStrokePatterns | Boolean, optional | Whether to transform Stroke Patterns |
Returns
Section titled “Returns”Nothing.
NonNativeItem.zOrder()
Section titled “NonNativeItem.zOrder()”nonNativeItems[index].zOrder(zOrderCmd)
Description
Section titled “Description”Arranges the art item’s position in the stacking order of the group or layer (parent) of this object.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
zOrderCmd | ZOrderMethod | Stacking order arrangement method |
Returns
Section titled “Returns”Nothing.