Studio Yotsuba
Back to Node List

Path Flip

path_flip

Flips a bezier path like a card in 3D: squashes toward the axis, switches to the back path past 90°, and keeps sub-path winding consistent when mirrored

Reviewed
Guide available

Input Ports

NameTypeDescription
Front
front
Path
Required
Front face path
Back
back
Path
Back face path shown past 90°, as seen from the front. When not connected, the mirrored front is used

Output Ports

NameTypeDescription
Path
path
Path
Flipped path
Back Visible
face
Bool
True while the back face is visible (90°-270°). Drive a value_select index to switch fill colors per face

Parameters

NameTypeDefaultRangeDescription / Options
Axis
axis
Enum
Vertical—

Rotation axis

  • VerticalVertical
    Rotate around the vertical axis: the path squashes horizontally
  • HorizontalHorizontal
    Rotate around the horizontal axis: the path squashes vertically
Axis Tilt
axis_angle
Angle
0— / step 1

Tilts the rotation axis clockwise in the canvas plane. Exact at any tilt — beziers are closed under affine transforms

Angle
angle
Angle
0— / step 1

Flip angle in degrees: 0° front, 90° collapses to a line, 180° back face. Promote and animate for a flip animation

Pivot
pivot_mode
Enum
CanvasCenter—

Where the flip axis passes through

  • CanvasCenterCanvasCenter
    Flip around the canvas center — front and back stay aligned even when their bounds differ
  • CenterCenter
    Flip around the path's own bounds center
  • OriginOrigin
    Flip around the origin (0, 0)
  • CustomCustom
    Flip around a custom pivot point
Pivot X
pivot_x
Float
0-4096–4096 / step 0.5

Custom pivot X

Pivot Y
pivot_y
Float
0-4096–4096 / step 0.5

Custom pivot Y

Keep Winding
winding_normalize_enabled
Bool
true—

Mirroring reverses sub-path winding (CW/CCW). Keep this on so fills, offsets and stroke sides behave the same after the flip

Overview

The path equivalent of sprite_flip: it turns a Bezier path as if it were a card. Because Bezier geometry remains affine, flipping at the path stage is lossless at every angle and axis tilt. Rasterization and lighting then run on the flattened shape for each frame.

Usage tips

  • A common chain is a path from shape_generate or bezier_path → path_flip → path_fill or path_stroke, optionally followed by surface_light_preview for per-frame lighting.
  • Promote Angle and drive it with time_source → remap from 0–1 to 0–360 for a full flip.
  • Connect a back path drawn as seen from the front. The node handles mirroring at 180°. Without a back input, it uses the mirrored front path.
  • Connect the showing_back Boolean to a value_select index to switch fill colors or stroke settings between front and back.
  • Canvas Center is the default pivot and remains stable even if front and back bounds differ. A path without canvas dimensions falls back to its bounds center.

Common mistakes

  • Nothing is visible near 90°: a path has zero thickness and collapses to a line. Fill disappears, but a 1px path_stroke can retain an edge-like line.
  • Offsets or winding-dependent fills break after mirroring: keep Preserve Winding on. Mirroring reverses winding, and the default corrects it automatically.
  • The shape jumps when front and back switch: Path Center moves when their bounds differ. Use Canvas Center or a Custom pivot.
  • Perspective is required: perspective is not affine. Rasterize first and use sprite_flip when perspective is necessary.

Related nodes

  • sprite_flip — raster-stage flip with perspective, edge line, and RotSprite
  • path_transform — general affine path transform, including manual negative scale
  • path_fill / path_stroke — rasterize the flipped path
  • surface_light_preview — relight the flattened shape on every frame
  • value_select — switch appearance using the back-side flag
Back to Node List