InDesign2026
API 21.5.1.73
Collection of MotionPreset

MotionPresets

A collection of Motion presets.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

MotionPreset

Returns the MotionPreset with the specified index.

index Number The index.
MotionPreset

Creates a new MotionPreset.

withProperties? Object Initial values for properties of the new MotionPreset
MotionPreset

Returns any MotionPreset in the collection.

Number

Displays the number of elements in the MotionPreset.

MotionPreset[]

Returns every MotionPreset in the collection.

MotionPreset

Returns the first MotionPreset in the collection.

MotionPreset

Returns the MotionPreset with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
MotionPreset

Returns the MotionPreset with the specified ID.

id Number The ID.
MotionPreset

Returns the MotionPreset with the specified name.

name String The name.
MotionPreset[]

Returns the MotionPresets within the specified range.

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

Returns the last MotionPreset in the collection.

MotionPreset

Returns the middle MotionPreset in the collection.

MotionPreset

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

obj MotionPreset The MotionPreset whose index comes before the desired MotionPreset.
MotionPreset

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

obj MotionPreset The index of the MotionPreset that follows the desired MotionPreset.
String

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

Object of 2

Properties elsewhere that hold a MotionPresets.