Adobe 12040118 Using Help - Page 158
PropertyGroup canAddProperty() method, PropertyGroup numProperties attribute, PropertyGroup property
![]() |
UPC - 718659361808
View all Adobe 12040118 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 158 highlights
Help Using Help Reference Back 158 Parameters name string; the name to be added to the PropertyGroup Returns PropertyBase. PropertyGroup canAddProperty() method app.project.item(index).layer(index).propertyGroup(index).canAddProperty(name) Description This method returns true if a property with the given name can be added to this PropertyGroup. Parameters name string; the name to be added to the PropertyGroup Returns Boolean. Example The maskGroup can only add masks. The only legal input arguments are as follows: • mask • ADBE Mask Atom Any other argument is illegal. Therefore: • maskGroup.canAddProperty("mask") returns true • maskGroup.canAddProperty("ADBE Mask Atom") returns true Any other input for maskGroup argument is false. For example, maskGroup.canAddProperty("blend") returns false PropertyGroup numProperties attribute app.project.item(index).layer(index).propertyGroup(index).numProperties Description This attribute represents the number of indexed properties in this group. Note: For Layers only, this can appear misleading, as it returns a value of 3. These correspond to the mask, effect, and motion tracker groups inside the Layer. However, Layers also have a host of other properties available only by name; see the "PropertyGroup property() method" on page 158. Type Integer; read-only. PropertyGroup property() method app.project.item(index).layer(index).propertyGroup(index).property(index) app.project.item(index).layer(index).propertyGroup(index).property(name) Using Help Back 158
![](/manual_guide/products/adobe-12040118-using-help-afc463d/158.png)