Studio Yotsuba
Back to Node List

Path Reverse

path_reverse

Reverse the direction of a bezier path

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
Bezier path to reverse

Output Ports

NameTypeDescription
Path
path
Path
Path with reversed direction

Parameters

NameTypeDefaultRangeDescription / Options
Scope
scope
Enum
All—

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

  • AllAll
    Reverse every sub-path in the input path
  • SubPathSubPath
    Reverse only one selected sub-path
Sub-path
sub_path_index
Int
00–255

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

Overview

Reverses the direction of travel along a path. The shape stays the same; only which end is the start changes. Use it before operations where path direction matters—placing or moving along a path, or determining holes from direction.

Usage tips

  • This is the shortest way to make motion along a path play in reverse. You could also replace t in path_sample with 1-t, but this node is more explicit.
  • It also reverses the order in path_array and the direction from path_tangent.
  • scope = SubPath is useful for shapes with holes: reverse only the inner loop to control hole detection in path_mask.

Related nodes

  • path_sample / path_tangent — representative nodes affected by direction

  • path_array — control the direction of placement along a path

  • path_mask — determine holes from direction

  • path_trim — note that reversing direction also reverses the trim interval

  • Version: 1

Behavior

  • scope = All
    • Reverses every subpath.
  • scope = SubPath
    • Reverses only the specified subpath and leaves the others unchanged.
  • Reorders segments and swaps handle directions, reversing only the direction of travel while preserving the original curve shape.
  • Closed subpaths remain closed, with only their direction reversed.
  • A nonexistent subpath index returns the input path as-is.

Examples

Reverse the direction of Path Array

[Bezier Path] → [Path Reverse] → [Path Array]

Reverse the direction of Path Tangent

[Bezier Path] → [Path Reverse] → [Path Tangent]

Reverse only the direction of a hole

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

Use this with Path Mask's direction-based hole rule to reverse only the inner loop.

Notes

  • The order of the subpaths themselves does not change.
  • 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