Shape Layer methods
Members
int
# static Primitive
A List of primitive shapes
Properties:
Name | Type | Description |
---|---|---|
NONE |
int
|
|
CIRCLE |
int
|
|
SQUARE |
int
|
|
ROUNDED_SQUARE |
int
|
|
POLYGON |
int
|
|
STAR |
int
|
Methods
# static getTransformMatrix(prop) → {Matrix}
Gets the transformation matrix for all the parent groups of a given property
Parameters:
Name | Type | Description |
---|---|---|
prop |
Property
|
DuAEProperty
|
The property |
The transformation matrix.
# 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