Yotsuba Games
Back to Node List

Path Reverse

path_reverse

Reverse the direction of a bezier path

Reviewed
Guide available
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
ใƒ‘ใ‚น
path
Path
Required
ๅ‘ใใ‚’ๅ่ปขใ™ใ‚‹ใƒ™ใ‚ธใ‚งใƒ‘ใ‚น

Output Ports

NameTypeDescription
ใƒ‘ใ‚น
path
Path
ๅ‘ใใŒๅ่ปขใ—ใŸใƒ‘ใ‚น

Parameters

NameTypeDefaultRangeDescription / Options
ๅฏพ่ฑก
scope
Enum
Allโ€”

ใƒ‘ใ‚นๅ…จไฝ“ใ‚’ๅ่ปขใ™ใ‚‹ใ‹ใ€1 ๆœฌใฎใ‚ตใƒ–ใƒ‘ใ‚นใ ใ‘ใ‚’ๅ่ปขใ™ใ‚‹ใ‹ใ‚’้ธใณใพใ™

  • ๅ…จใ‚ตใƒ–ใƒ‘ใ‚นAll
    ๅ…ฅๅŠ›ใƒ‘ใ‚นๅ†…ใฎใ™ในใฆใฎใ‚ตใƒ–ใƒ‘ใ‚นใ‚’ๅ่ปขใ—ใพใ™
  • ๆŒ‡ๅฎšใ‚ตใƒ–ใƒ‘ใ‚นSubPath
    ้ธใ‚“ใ  1 ๆœฌใฎใ‚ตใƒ–ใƒ‘ใ‚นใ ใ‘ใ‚’ๅ่ปขใ—ใพใ™
ใ‚ตใƒ–ใƒ‘ใ‚น
sub_path_index
Int
00โ€“255

ๅ่ปขใ™ใ‚‹ใ‚ตใƒ–ใƒ‘ใ‚น็•ชๅท๏ผˆ0 = ๆœ€ๅˆ๏ผ‰

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
Path Reverse โ€” PixPipeline Node Reference