Edit in GitHubLog an issue

MotionPresets

A collection of Motion presets.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

MotionPreset add( Object withProperties )

Creates a new MotionPreset.

Parameters

TypeNameDescription
Object
withProperties
Initial values for properties of the new MotionPreset (Optional)

Number count()

Displays the number of elements in the MotionPreset.


MotionPreset item( Mixed index )

Returns the MotionPreset with the specified index or name.

Parameters

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

MotionPreset itemByName( String name )

Returns the MotionPreset with the specified name.

Parameters

TypeNameDescription
String
name
The name.

MotionPreset itemByID( Number id )

Returns the MotionPreset with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

MotionPreset itemByRange( Mixed from, Mixed to )

Returns the MotionPresets within the specified range.

Parameters

TypeNameDescription
Mixed
from
The MotionPreset, index, or name at the beginning of the range. Can accept: MotionPreset, Long Integer or String.
Mixed
to
The MotionPreset, index, or name at the end of the range. Can accept: MotionPreset, Long Integer or String.

MotionPreset firstItem()

Returns the first MotionPreset in the collection.


MotionPreset lastItem()

Returns the last MotionPreset in the collection.


MotionPreset middleItem()

Returns the middle MotionPreset in the collection.


MotionPreset previousItem( MotionPreset obj )

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

Parameters

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

MotionPreset nextItem( MotionPreset obj )

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

Parameters

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

MotionPreset anyItem()

Returns any MotionPreset in the collection.


MotionPreset everyItem()

Returns every MotionPreset in the collection.


String toSource()

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


MotionPreset []( Number index )

Returns the MotionPreset with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.