Studio Yotsuba
Back to Node List

Path Measure

path_measure

Measure the usable length and structure of a path

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Path whose length you want to use for spacing or animation

Output Ports

NameTypeDescription
Total Length
total_length
Float
Sum of all sub-path lengths in pixels
Sub-path Length
sub_path_length
Float
Length of the selected sub-path in pixels
Sub-path Count
sub_path_count
Int
Number of separate sub-paths
Closed
closed
Bool
Whether the selected sub-path forms a closed loop

Parameters

NameTypeDefaultRangeDescription / Options
Sub-path
sub_path_index
Int
00–255

Sub-path used by Sub-path Length and Closed (0 = first)

Overview

Reports path length in pixels for calculating chain links, fence pieces, movement speed, or placement offsets. It provides both the sum of all subpaths and details for one selected subpath.

Usage tips

  • Total Length is the combined distance of all independent lines. Use it for total material quantity or aggregate processing.
  • Subpath Length applies only to Selected Subpath. Use it when placement counts differ per line.
  • Closed tells you whether the selected subpath forms a loop. It is useful for seamless placement and periodic processing.
  • Length uses the same arc-length basis as the normalized/distance modes in path_sample and the pixel spacing in path_array.

Common mistakes

  • Total and subpath length differ: the document contains multiple subpaths. Select the same index in downstream nodes when only one line is intended.
  • Length is zero: the path is missing, empty, or the selected subpath index does not exist.
  • A closed path is longer than expected: the return segment from end to start is part of its actual travel distance.

Related nodes

  • path_array — place images at fixed pixel intervals along the measured route
  • path_sample — retrieve position and direction by normalized progress or distance
  • path_bounds — report the bounding rectangle and center instead of length
Back to Node List