Edit in GitHubLog an issue

PathPoint

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.

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.

Added in Photoshop 23.3

Properties

NameTypeAccessMin VersionDescription
anchor
number[]
R
23.3
The coordinates of the anchor point of the curve, in `[horizontal, vertical]` format.
kind
R
23.3
The role (corner or smooth) this point plays in the containing path segment.
leftDirection
number[]
R
23.3
The location of the left-direction endpoint ('in' position), in `[horizontal, vertical]` format.
parent
R
23.3
The containing SubPath object.
rightDirection
number[]
R
23.3
The location of the right-direction endpoint ('out' position), in `[horizontal, vertical]` format.
typename
string
R
23.3
The class name of the referenced object: "PathPoint".
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.