Namespace

DuAEShapeLayer

DuAEShapeLayer

Shape Layer methods

View Source DuAEF.jsxinc, line 33174

Members

Number

# static Primitive

A List of primitive shapes
Properties:
Name Type Description
NONE Number
CIRCLE Number
SQUARE Number
ROUNDED_SQUARE Number
POLYGON Number
STAR Number

View Source DuAEF.jsxinc, line 33180

Methods

# static getTransformMatrix(prop, includeLayerTransformopt) → {Matrix}

Gets the transformation matrix for all the parent groups of a given property
Parameters:
Name Type Attributes Default Description
prop PropertyBase | DuAEProperty The property
includeLayerTransform Boolean <optional>
true Whether to include the layer transformation in the matrix

View Source DuAEF.jsxinc, line 33195

The transformation matrix.
Matrix

# static getVectorGroupContents(layer, path) → {PropertyGroup|null}

Gets the content of a specific group in the shape layer
Parameters:
Name Type Description
layer ShapeLayer The layer
path string The path, using group names. e.g. 'Group 1/Subgroup'

View Source DuAEF.jsxinc, line 33259

The contents of the vector group, or null if it can't be found.
PropertyGroup | null

# static getVectorGroupTransform(layer, path) → {PropertyGroup|null}

Gets the transform of a specific group in the shape layer
Parameters:
Name Type Description
layer ShapeLayer The layer
path string The path, using group names. e.g. 'Group 1/Subgroup'

View Source DuAEF.jsxinc, line 33278

The contents of the vector group, or null if it can't be found.
PropertyGroup | null

# static isSingleShape(layer) → {bool}

Checks if this shape layers contains only one shape, one fill, and one stroke,\n just like After Effects creates them at first.
Parameters:
Name Type Description
layer Layer The layer to test

View Source DuAEF.jsxinc, line 33234

True if the layer is a shape layer containing only one shape, one fill, and one stroke in a group. False otherwise.
bool