51
JavaScript Reference
Collection object
51
Collection object
Like an array, a collection associates a set of objects or values as a logical group and provides access to them
by index. However, most collection objects are read-only. You do not assign objects to them yourself—their
contents update automatically as objects are created or deleted.
The index numbering of a collection starts with 1, not 0.
Objects
Attributes
Methods
Object
Reference
Description
I t e m C o l le c t i o n
“ItemCollection object” on page 79 All of the items (imported files, folders, solids, and so on) found in
the Project panel.
L a y e r C o ll e c t i o n
“LayerCollection object” on
page 92
All of the layers in a composition.
O M C o l l e c t i o n
“OMCollection object” on page 104 All of the Output Module items in the project.
R Q I t e m C o l l e ct i o n
“RenderQueueItem object” on
page 155
All of the render-queue items in the project.
l e n g t h
The number of objects in the collection.
[ ]
Retrieves an object in the collection by its index number. The first object is at index 1.
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...