canAddProperty()

app.project.item(index).layer(index).propertyGroupSpec.canAddProperty(name)

Description

Returns true if a property with the given name can be added to this property group. For example, you can only add mask to a mask group. The only legal input arguments are mask” or “ADBE Mask Atom”.

maskGroup.canAddProperty(“mask”); //returns true
maskGroup.canAddProperty(“ADBE Mask Atom”); //returns true
maskGroup.canAddProperty(“blend”); // returns false

Parameters

name The display name or match name of the property to be checked. (See “PropertyGroup addProp-erty() method” ).

Returns

Boolean.

Other Tags

Posted in PropertyGroup object and tagged , , , , , , , , , , .