Adobe InDesign CS5.5 (7.5) Object Model JS: MotionPresets

InDesign CS5.5

Class

MotionPresets

 A collection of Motion presets.

See also MotionPreset.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

MotionPreset [] (index: number)
Returns the MotionPreset with the specified index.

ParameterTypeDescription
indexnumberThe index.

MotionPreset add ([withProperties: Object])
Creates a new MotionPreset.

ParameterTypeDescription
withPropertiesObjectInitial 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.

Array of MotionPreset everyItem ()
Returns every MotionPreset in the collection.

MotionPreset firstItem ()
Returns the first MotionPreset in the collection.

MotionPreset item (index: varies)
Returns the MotionPreset with the specified index or name.

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

MotionPreset itemByID (id: number)
Returns the MotionPreset with the specified ID.

ParameterTypeDescription
idnumberThe ID.

MotionPreset itemByName (name: string)
Returns the MotionPreset with the specified name.

ParameterTypeDescription
namestringThe name.

Array of MotionPreset itemByRange (from: varies, to: varies)
Returns the MotionPresets within the specified range.

ParameterTypeDescription
fromLong Integer
MotionPreset
String
The MotionPreset, index, or name at the beginning of the range. Can accept: MotionPreset, Long Integer or String.
toLong Integer
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.

ParameterTypeDescription
objMotionPresetThe MotionPreset whose index comes before the desired MotionPreset.

MotionPreset previousItem (obj: MotionPreset)
Returns the MotionPreset with the index previous to the specified index.

ParameterTypeDescription
objMotionPresetThe index of the MotionPreset that follows the desired MotionPreset.

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

Element of

Application.motionPresets

Document.motionPresets

Jongware, 28-Apr-2012 v3.0.3iContents :: Index