Adobe 65009963 Scripting Manual page 147

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
PropertyGroup object
a pp .p r o j e c t .i te m (i nd e x) .l ay e r ( inde x) .p r op e r t y G r oup S p e c
Description
The PropertyGroup object represents a group of properties. It can contain Property objects and other
PropertyGroup objects. Property groups can be nested to provide a parent-child hierarchy, with a Layer object
at the top (root) down to a single Property object, such as the mask feather of the third mask. To traverse the
group hierarchy, use PropertyBase methods and attributes; see "PropertyBase propertyGroup() method" on
page 145.
For examples of how to access properties and property groups, see "PropertyBase object" on page 140.
PropertyGroup is a subclass of PropertyBase. All methods and attributes of PropertyBase, in addition to
those listed below, are available when working with PropertyGroup. See "PropertyBase object" on
page 140.
PropertyGroup is a base class for MaskPropertyGroup. PropertyGroup attributes and methods are available
when working with mask groups. See "MaskPropertyGroup object" on page 102.
Attributes
Attribute
Reference
n u m P r op e r t ie s
"PropertyGroup numProperties attribute" on page 148 The number of indexed properties in the group.
Methods
Method
Reference
p r o p e r ty ( )
"PropertyGroup property() method" on
page 149
c an A d dP r o p e r ty ( )
"PropertyGroup canAddProperty() method"
on page 148
a dd P r o p e r t y ()
"PropertyGroup addProperty() method" on
page 147
PropertyGroup addProperty() 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 . a d dP rop er ty ( n a m e )
Description
Creates and returns a PropertyBase object with the specified name, and adds it to this group.
In general, you can only add properties to an indexed group (a property group that has the type
P r o p e r t y T y p e . I N D E X E D _ G R O U P
exception is a text animator property, which can be added to a named group (a property group that has the
type
P r o p e r ty T y p e .N A M E D _ GR OU P)
If this method cannot create a property with the specified name, it generates an exception. To check that you
can add a particular property to this group, call
Group canAddProperty() method" on page 148.)
Description
Gets a member property or group.
Reports whether a property can be added to the group.
Adds a property to the group.
; see "PropertyBase propertyType attribute" on page 145) The only
.
c a n A dd P r o p e r t y
PropertyGroup object
Description
before calling this method. (See "Property-
147
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents