Path2

Path2

Function. Outputs a point on a user-defined 2D path.

Valid input range is [0; 1], where 0 corresponds to the start of the path and 1 to the end. When the block is selected, the path can be edited visually in the Preview window.

Paths can contain linear and Bezier curve segments.

Path direction

A path runs from its first point to its last one. That direction decides which end corresponds to input 0 and which to input 1, and it sets the Direction output. Arrows drawn on the segments in the Preview window show which way the path runs.

The Reverse Direction button in the path editor toolbar flips it. The path keeps its exact shape — every point and every Bezier handle stays where it is — so only the arrows change. What used to be the start becomes the end, input 0 and 1 swap ends, and the Direction output points the opposite way.

This is handy when a path was drawn the wrong way round: instead of deleting it and drawing it again in the other direction, reverse it in one click. The action is a single undo step.

Properties & inputs:

  • Bezier subdiv. (property): Number of linear segments each Bezier curve is divided into. Higher values produce smoother curves.

Outputs:

  • Length (float): Total length of the path.
  • Position (vec2): 2D position on the path at the given input value.
  • Direction (vec2): 2D direction (tangent) of the path at the given input value.