Adobe 65009963 Scripting Manual page 149

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
PropertyGroup property() method
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .p r op e r t y G r oup S p e c . p r o pe r ty( in d ex )
a pp .p r o j e c t .i te m (i nd e x) .laye r( in de x) .p r op e r t y G r oup S p e c . p r o pe r ty( n am e )
Description
Finds and returns a child property of this group, as specified by either its index or name.
A name specification can use the same syntax that is available with expressions. The following are all allowed
and are equivalent:
m y l a ye r .p o s i ti o n
m y l a ye r ( " po si ti o n " )
my l a ye r.p rop er ty ( " po si t io n ")
m y l a ye r ( 1 )
m y l a ye r . p r o p e r t y ( 1 )
Some properties of a layer, such as position and zoom, can be accessed only by name.
When using the name to find a property that is multiple levels down, you must make more than one call to
this method. For example, the following call searches two levels down, and returns the first mask in the mask
group:
m y L a y e r .p r o pe r ty ( " A D BE M as ks " ) .p r o p e r t y (1 )
Parameters
i n d e x
The index for the child property, in this is an indexed group. An integer in the range [0..
t i es
n a m e
The name of the child property. This can be:
Any match name
Any name in expression "parenthesis style" syntax, meaning the display name or the compact English
name
Any name in expression "intercap style" syntax
For supported property names, see the table below.
Returns
PropertyBase object or null if no child property with the specified string name is found.
Properties accessible by name
From any Layer
].
• "ADBE Mask Parade", or "Masks"
• "ADBE Effect Parade", or "Effects"
• "ADBE MTrackers", or "Motion Trackers"
PropertyGroup object
149
n u m P r o p e r -
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents