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
centerin atransformtranslation calculation to center a path no matter where it was drawn. - Derive canvas dimensions or spacing from
sizeto 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 boundspath_sample— when you need a point on the path rather than a rectanglefit_to_canvas— automatic fitting on the image sideexpression_float/expression_vec2— process the bounds valuesVersion: 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
0for 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 / centerare 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_indexslider 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.