Studio Yotsuba
Back to Node List

Path Bounds

path_bounds

Output bounding information for a bezier path

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Bezier path to measure

Output Ports

NameTypeDescription
Min
min
Vec2
Minimum bound coordinate [min_x, min_y]
Max
max
Vec2
Maximum bound coordinate [max_x, max_y]
Size
size
Vec2
Bound size [width, height]
Center
center
Vec2
Center of the bounds [center_x, center_y]
Min X
min_x
Float
Minimum X coordinate
Min Y
min_y
Float
Minimum Y coordinate
Max X
max_x
Float
Maximum X coordinate
Max Y
max_y
Float
Maximum Y coordinate
Width
width
Float
Bound width
Height
height
Float
Bound height
Center X
center_x
Float
Center X coordinate
Center Y
center_y
Float
Center Y coordinate

Parameters

NameTypeDefaultRangeDescription / Options
Scope
scope
Enum
All—

Choose whether to measure the full path or one sub-path

  • AllAll
    Measure all sub-paths together
  • SubPathSubPath
    Measure only one selected sub-path
Sub-path
sub_path_index
Int
00–255

Index of the sub-path to measure (0 = first)

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