Back to Node List

Path Bounds

path_bounds

Output bounding information for a bezier path

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
パス
path
Path
Required
境界を調べるベジェパス

Output Ports

NameTypeDescription
最小
min
Vec2
境界の最小座標 [min_x, min_y]
最大
max
Vec2
境界の最大座標 [max_x, max_y]
サイズ
size
Vec2
境界サイズ [width, height]
中心
center
Vec2
境界の中心座標 [center_x, center_y]
最小 X
min_x
Float
最小 X 座標
最小 Y
min_y
Float
最小 Y 座標
最大 X
max_x
Float
最大 X 座標
最大 Y
max_y
Float
最大 Y 座標
width
Float
境界の幅
高さ
height
Float
境界の高さ
中心 X
center_x
Float
中心 X 座標
中心 Y
center_y
Float
中心 Y 座標

Parameters

NameTypeDefaultRangeDescription / Options
対象
scope
Enum
All

パス全体を測るか、1 本のサブパスだけを測るかを選びます

  • 全サブパスAll
    すべてのサブパスをまとめて測ります
  • 指定サブパスSubPath
    選んだ 1 本のサブパスだけを測ります
サブパス
sub_path_index
Int
00–255

測定するサブパス番号(0 = 最初)

Overview

Extracts a path's bounding rectangle (minimum/maximum coordinates, size, and center) as numbers. It supplies information for shape-responsive wiring, such as placing or scaling something to match a path's dimensions.

Usage tips

  • A typical use is centering. Use center in a transform translation calculation to center a path no matter where it was drawn.
  • Derive canvas dimensions or spacing from size to build a graph whose layout follows edits to the path automatically.
  • Process the values directly with math_op / expression_float. Separate Float outputs keep the wiring short.

Related nodes

  • transform — align something using the bounds

  • path_sample — when you need a point on the path rather than a rectangle

  • fit_to_canvas — automatic fitting on the image side

  • expression_float / expression_vec2 — process the bounds values

  • Version: 1

Behavior

  • scope = All
    • Returns the combined bounds of all subpaths.
  • scope = SubPath
    • Returns the bounds of only the specified subpath.
  • Bounds are calculated from the actual curve shape, not the positions of control handles.
  • An empty path or nonexistent subpath index returns 0 for every value.

Examples

Get the path width and height

[Bezier Path] → [Path Bounds] → width, height

Measure only a specified subpath

[Multi Path] → [Path Bounds(scope: SubPath, sub_path_index: 1)]

Pass the center of the bounds to another node

[Bezier Path] → [Path Bounds] → center_x, center_y → [Transform]

Notes

  • min / max / size / center are Vec2 outputs.
  • The same values are also available as Float outputs such as min_x, allowing direct connections to numeric nodes.
  • The upper limit of the sub_path_index slider updates automatically to the number of subpaths in the input path.
  • If a saved index is currently above that limit, the value is preserved and an out-of-range warning is shown. It becomes active again if the subpath count returns.
Back to Node List
Path Bounds — PixPipeline Node Reference