Shape Layer methods
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
|
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 |
The transformation 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' |
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' |
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 |
True if the layer is a shape layer containing only one shape, one fill, and one stroke in a group. False otherwise.
bool