Assets

A collection of assets.

Methods:

add, addFromSelection, getByID, getByName, getByName, remove, removeAll

Property Listing

Property

Type

Access

Description

length

Int

readonly

Number of elements in the collection.

parent

 

readonly

The object's container.

typename

String

readonly

The class name of the object.

Method Listing

Asset add (sourceArt:Varies)

Creates an asset from the given art(s)

Parameter

Type

Description

sourceArt

Varies

The page item(s) to apply to.

Asset addFromSelection ()

Creates an asset from the selected arts.

Asset getByID (assetID:Int32)

Gets the asset with the specified AssetID.

Parameter

Type

Description

assetID

Int32

The UID of the asset.

Asset getByName (name:String)

Get the first element in the collection with the provided name.

Parameter

Type

Description

name

String

 

Asset getByName (assetName:String)

Gets the first asset with specified name.

Parameter

Type

Description

assetName

String

Name of the asset.

undefined remove (assetID:Int32)

Deletes the asset with specified id.

Parameter

Type

Description

assetID

Int32

UID of the asset to be deleted.

undefined removeAll ()

Deletes all elements.

Object of

Document.assets