Adobe 65009963 Scripting Manual page 80

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
If the ItemCollection belongs to the project or the root folder, then the new folder's
folder. If the ItemCollection belongs to any other folder, the new folder's
To put items in the folder, set the item object's
page 77.
Parameters
n a m e
A string containing the name of the folder.
Returns
FolderItem object.
Example
This script creates a new FolderItem in the Project panel and moves compositions into it.
/ / c r e at e a n e w F o l d e r I t e m in p r o je c t , w i t h n a m e " c o m p s "
v a r c o m p F o l d e r = ap p .p r o j e c t. it e m s .a dd F o l d e r ( " c o m p s " );
/ / m o v e a l l c o m po s i t i o n s i n t o n e w f o l d e r b y s e t t in g
/ / c o m p I t e m ' s p a r e n tF o l d e r t o " c o m p s " f o l d e r
f o r ( v a r i = 1 ; i < = a p p . p r o j e ct . n u m I t e m s ; i + + ) {
if (a pp .p ro ject .item (i) in st anceo f Co mp Item )
a pp . p r o j e c t .i t e m ( i ) . p a r e n t F o l d e r = c o m p F o l d e r ;
}
p ar e n t F o l de r
attribute; see "Item parentFolder attribute" on
pa rent F ol d er
ItemCollection object
80
is the root
pa ren tF ol d er
is that
.
F o ld e r I t e m
80

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents