Adobe 65009963 Scripting Manual page 79

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
ItemCollection object
a pp .p r o j e c t .i te m s
Description
The ItemCollection object represents a collection of items. The ItemCollection belonging to a Project object
contains all the Item objects for items in the project. The ItemCollection belonging to a FolderItem object
contains all the Item objects for items in that folder.
ItemCollection is a subclass of Collection. All methods and attributes of Collection, in addition to those
listed below, are available when working with ItemCollection. See "Collection object" on page 51.
Methods
Method
Reference
a dd C om p( )
"ItemCollection addComp() method" on
page 79
a dd F o l d e r ( )
"ItemCollection addFolder() method" on
page 79
ItemCollection addComp() method
a pp .p r o j e c t .i te m C o l l e c ti o n.ad d C o m p ( n am e , w i dt h , h ei gh t , p ix el A s p ec t , d u ra t io n , f ra m e Rat e )
Description
Creates a new composition. Creates and returns a new CompItem object and adds it to this collection.
If the ItemCollection belongs to the project or the root folder, then the new item's
folder. If the ItemCollection belongs to any other folder, the new item's
Parameters
n a m e
A string containing the name of the composition.
w i dt h
The width of the composition in pixels, an integer in the range [4..30000].
h ei g ht
The height of the composition in pixels, an integer in the range [4..30000].
p i xe l A s pe c t
The pixel aspect ratio of the composition, a floating-point value in the range [0.01..100.0].
d u r a ti o n
The duration of the composition in seconds, a floating-point value in the range [0.0..10800.0].
f r am e R a te
The frame rate of the composition, a floating-point value in the range [1.0..99.0]
Returns
CompItem object.
ItemCollection addFolder() method
a pp .p r o j e c t .i te m C o l l e c ti o n.ad d F o l d e r ( n a m e )
Description
Creates a new folder. Creates and returns a new FolderItem object and adds it to this collection.
Description
Creates a new CompItem object and adds it to the collection.
Creates a new FolderItemobject and adds it to the collection.
pa rent F ol d er
pa rent F ol d er
ItemCollection object
79
is the root
is that
.
F o l d e r I t e m
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents