MotionPresets

A collection of Motion presets.

Methods:

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

MotionPreset [] (index:Number)

Returns the MotionPreset with the specified index.

Parameter

Type

Description

index

Number

The index.

MotionPreset add (withProperties:Object)

Creates a new MotionPreset.

Parameter

Type

Description

withProperties

Object

Initial values for properties of the new MotionPreset (Optional)

MotionPreset anyItem ()

Returns any MotionPreset in the collection.

Number count ()

Displays the number of elements in the MotionPreset.

MotionPreset everyItem ()

Returns every MotionPreset in the collection.

MotionPreset firstItem ()

Returns the first MotionPreset in the collection.

MotionPreset item (index:Varies LongInteger String)

Returns the MotionPreset with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

MotionPreset itemByID (id:Number)

Returns the MotionPreset with the specified ID.

Parameter

Type

Description

id

Number

The ID.

MotionPreset itemByName (name:String)

Returns the MotionPreset with the specified name.

Parameter

Type

Description

name

String

The name.

MotionPreset itemByRange (from:Varies LongInteger MotionPreset String, to:Varies LongInteger MotionPreset String)

Returns the MotionPresets within the specified range.

Parameter

Type

Description

from

LongInteger

MotionPreset

String

The MotionPreset, index, or name at the beginning of the range. Can accept: MotionPreset, Long Integer or String.

to

LongInteger

MotionPreset

String

The MotionPreset, index, or name at the end of the range. Can accept: MotionPreset, Long Integer or String.

MotionPreset lastItem ()

Returns the last MotionPreset in the collection.

MotionPreset middleItem ()

Returns the middle MotionPreset in the collection.

MotionPreset nextItem (obj:MotionPreset)

Returns the MotionPreset whose index follows the specified MotionPreset in the collection.

Parameter

Type

Description

obj

MotionPreset

The MotionPreset whose index comes before the desired MotionPreset.

MotionPreset previousItem (obj:MotionPreset)

Returns the MotionPreset with the index previous to the specified index.

Parameter

Type

Description

obj

MotionPreset

The index of the MotionPreset that follows the desired MotionPreset.

String toSource ()

Generates a string which, if executed, will return the MotionPreset.

Object of

Application.motionPresets

Document.motionPresets