149
JavaScript Reference
PropertyGroup object
149
PropertyGroup property() method
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r
( i n d e x )
.
p r o p e r t y G r o u p S p e c .
p r o p e r t y
( i n d e x )
a p p . p r o j e c t . i t e m
( i n d e x )
. l a y e r
( i n d e x )
.
p r o p e r t y G r o u p S p e c .
p r o p e r t y
( n a m 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 t i o n
m y l a ye r ( " p o s i t i o n " )
m y l a y e r . p r o p e r t y ( " p o s i t i o 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 p e r t y ( " A D B E M a s k s " ) . p r o p e r t y ( 1 )
Parameters
Returns
PropertyBase object or null if no child property with the specified string name is found.
Properties accessible by name
i n d e x
The index for the child property, in this is an indexed group. An integer in the range [0..
n u m P r o p e r -
t i e s
].
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.
From any Layer
• "ADBE Mask Parade", or “Masks”
• "ADBE Effect Parade", or “Effects”
• "ADBE MTrackers", or “Motion Trackers”
Summary of Contents for 65009963 - After Effects CS4
Page 1: ...SCRIPTING GUIDE...