Adobe 65009963 Scripting Manual page 78

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Type
FolderItem object; read/write.
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 ;
}
Item remove() method
a pp .p r o j e c t .i te m (i nd e x) .re m ove ()
Description
Deletes this item from the project and from the Project panel. If the item is a FolderItem, all the items
contained in the folder are also removed from the project. No files or folders are removed from disk.
Parameters
None.
Returns
Nothing.
Item selected attribute
a pp .p r o j e c t .i te m (i nd e x) .s e l e c t e d
Description
When true, this item is selected. Multiple items can be selected at the same time. Set to true to select the item
programmatically, or to false to deselect it.
Type
Boolean; read/write.
Item typeName attribute
a pp .p r o j e c t .i te m (i nd e x) .t yp eN am e
Description
A user-readable name for the item type; for example, "Folder", "Footage", or "Composition".
Type
String; read-only.
Item object
78
78

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents