UXP Toolkit
    Preparing search index...

    Represents a subpath; a collection of subpaths make up a PathItem.

    Create these objects by passing SubPathInfo objects to PathItems.add() method. This method creates a SubPathItem object for each SubPathInfo object, and creates and then returns a new PathItem object for the path represented by all of the subpaths. Access these objects in the PathItem.subPathItems collection.

    • Use the SubPathItem object to retrieve information about existing subpaths. The properties are read-only.
    • Use SubPathInfo to create subpaths; the properties are read-write.
    // Access subpaths from a path
    const path = app.activeDocument.pathItems[0];
    path.subPathItems.forEach(subPath => {
    console.log(`SubPath closed: ${subPath.closed}, operation: ${subPath.operation}`);
    console.log(`Points count: ${subPath.pathPoints.length}`);
    });

    Added in Photoshop 23.3*

    Index

    Accessors