Namespace

DuAEShapeLayer

DuAEShapeLayer

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 Duik_api_fordoc.jsxinc, line 32960

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 Duik_api_fordoc.jsxinc, line 32975

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 Duik_api_fordoc.jsxinc, line 33039

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 Duik_api_fordoc.jsxinc, line 33058

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 Duik_api_fordoc.jsxinc, line 33014

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