DuAEF.DuAE.Property.Bezier

Bezier Path methods

Methods

static checkProperty(prop) → {PropertyInfo|null}

Checks if the property is a bezier property, or return the child bezier property if this is a shape or a mask
Parameters:
Name Type Description
prop Property | PropertyInfo The property
Returns:
PropertyInfo | null - the bezier property or null if it is not.

static exportToJsxinc(shapePropopt, fileopt, offsetToCenteropt) → {int}

Export the given shape property to the given file
The file name in the given path will be used to name the shape in the jsx code
Parameters:
Name Type Attributes Default Description
shapeProp Property <optional>
The path property to export
file String <optional>
The path to where the jsxinc shape will be written
offsetToCenter boolean <optional>
false If true, offset the path to the center
Returns:
int - A status code. [0: success, ...]
Example
var props = DuAEF.DuAE.Comp.getSelectedProps(PropertyValueType.SHAPE);
var prop = props[0].getProperty();
var out = DuAEF.DuAE.Property.Shape.exportToJsxinc(prop, "D:/shape.test");

static horizontalSymetries(pathProperties)

Makes a horizontal symetry transformation on the paths, using the same axis of symetry for all shapes (shapes must be on the same layer).
Parameters:
Name Type Description
pathProperties Array.<Property> The After Effects Properties containing the paths to symetrize

static horizontalSymetry(pathProperty)

Makes a horizontal symetry transformation on the path.
Parameters:
Name Type Description
pathProperty Property The After Effects Property containing the path to symetrize

static verticalSymetries(pathProperties)

Makes a vertical symetry transformation on the paths, using the same axis of symetry for all shapes (shapes must be on the same layer).
Parameters:
Name Type Description
pathProperties Array.<Property> The After Effects Properties containing the paths to symetrize

static verticalSymetry(pathProperty)

Makes a vertical symetry transformation on the path.
Parameters:
Name Type Description
pathProperty Property The After Effects Property containing the path to symetrize

static verticesToComp(prop) → {Array.<Array.<float>>}

Gets the vertices array in comp coordinates.
Parameters:
Name Type Description
prop Property | PropertyInfo The property, a bezier path.
Returns:
Array.<Array.<float>> - The vertices in comp coordinates.