DuAEF.DuAE.Property.Shape

Bezier Paths methods

Methods

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