UXP Toolkit
    Preparing search index...

    Represents the anchor and control-handle endpoints for a path segment. Each point (the anchor point, left-direction point, and right-direction point) is an array containing X and Y position coordinates.

    • Use the PathPoint object to retrieve information about the points that describe existing path segments. The properties are read-only. Access PathPoint objects through the SubPathItem.pathPoints property.

    • Use PathPointInfo with PathItems.add() to create path points. The properties are writeable.

    https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/pathpoint/

    For paths that are straight segments (not curved), the coordinates of all three points are the same. For curved segments, the coordinates are different. The difference between the anchor point and the left or right direction points determines the arc of the curve. Use the left direction point to bend the curve "outward" or make it convex; or use the right direction point to bend the curve "inward" or make it concave.

    // Access path points from a path
    const path = app.activeDocument.pathItems[0];
    const subPath = path.subPathItems[0];
    subPath.pathPoints.forEach(point => {
    console.log(`Anchor: ${point.anchor}, Kind: ${point.kind}`);
    });

    Added in Photoshop 23.3*

    Index

    Accessors