InDesign2026
API 21.5.1.73
Object

MotionPreset

A Motion preset Object.

Hierarchy

Application | Document

MotionPreset

Properties

NameType AccessDescription
String read/write Motion preset raw data
EventListeners<EventListener> readonly A collection of event listeners.
Events<Event> readonly A collection of events.
Number readonly The unique ID of the MotionPreset.
Number readonly The index of the MotionPreset within its containing object.
Boolean readonly Returns true if the object specifier resolves to valid objects.
String read/write A property that can be set to any string.
String read/write The name of the MotionPreset.
Application | Document readonly The parent of the MotionPreset (a Application or Document).
Object read/write A property that allows setting of several properties at the same time.

Methods

EventListener

Adds an event listener.

eventType String The event type.
handler File | JavaScriptFunction The event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
MotionPreset

Duplicates the motion preset.

name? String The name for the duplicated motion preset.
String

Gets the label value associated with the specified key.

key String The key.
MotionPreset[]

Resolves the object specifier, creating an array of object references.

void

Sets the label to the value associated with the specified key.

key String The key.
value String The value.
void

Deletes the MotionPreset.

Boolean

Removes the event listener.

eventType String The registered event type.
handler File | JavaScriptFunction The registered event handler. Can accept: File or JavaScript Function.
captures? Boolean This parameter is obsolete.
void

Save a copy of this motion preset to a InDesign motion preset file.

to File The Flash motion preset file to export to.
String

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

String

Retrieves the object specifier.

Object of 4

Properties elsewhere that hold a MotionPreset.

Parameter of 3

Method parameters that accept a MotionPreset.

Return 17

Methods that return a MotionPreset.