Skip to content

PathPoint

app.activeDocument.pathItems[index].pathPoints[index]

A point on a specific path.

Each path point is made up of an anchor point (anchor) and a pair of handles (leftDirection and rightDirection).


app.activeDocument.pathItems[index].pathPoints[index].anchor

The position of this point’s anchor point.

Array of 2 numbers


app.activeDocument.pathItems[index].pathPoints[index].leftDirection

The position of this path point’s in control point.

Array of 2 numbers


app.activeDocument.pathItems[index].pathPoints[index].parent

The path item that contains this path point.

PathItem; read-only.


app.activeDocument.pathItems[index].pathPoints[index].pointType

The type of path point, either a curve or a corner. Any point can considered a corner point.

Setting the type to a corner forces the left and right direction points to be on a straight line when the user attempts to modify them in the user interface.

PointType


app.activeDocument.pathItems[index].pathPoints[index].rightDirection

The position of this path point’s out control point.

Array of 2 numbers


app.activeDocument.pathItems[index].pathPoints[index].selected

Are points of this path point selected, and if so, which ones.

PathPointSelection


app.activeDocument.pathItems[index].pathPoints[index].typename

The class name of the referenced object.

String; read-only.


app.activeDocument.pathItems[index].pathPoints[index].remove()

Removes the referenced point from the path.

Nothing.