Studio Yotsuba
Back to Node List

Path Deform

path_deform

Deforms a path (squash & stretch / bulge / wave / jitter). Animate Amount with ๐ŸŽž๏ธ for rubber-ball squashes, breathing blobs and flowing waves. Connect a height map to deform it together with the shape.

Reviewed
Guide available

Input Ports

NameTypeDescription
Path
path
Path
Required
The path to deform.
Map
map
Image
Optional height map (or any image in the same canvas as the path). It gets the same deformation, so shading derived from it follows the shape.

Output Ports

NameTypeDescription
Path
path
Path
The deformed path. Chain into path_fill / path_stroke.
Map
map
Image
The map with the same deformation applied (only when a map is connected).

Parameters

NameTypeDefaultRangeDescription / Options
Mode
mode
Enum
Squashโ€”

What kind of deformation to apply

  • SquashSquash
    Scale along one axis around an anchor. The classic rubber-ball squash & stretch.
  • BulgeBulge
    Pushes everything outward from the center (negative = pinch). Breathing and jelly-like wobbles.
  • WaveWave
    Sine wave displacement. Animate Phase to make the wave travel โ€” flags, grass, water.
  • JitterJitter
    Smooth random displacement (deterministic by seed). Animate Phase for wobbling outlines.
Amount
amount
Float
0-100โ€“100 / step 1

How strong the deformation is. Attach an animation here (๐ŸŽž๏ธ) to make it move.

Axis
axis
Enum
Verticalโ€”

Squash: which axis stretches. Wave: which way points are pushed.

  • VerticalVertical
  • HorizontalHorizontal
Anchor
pivot
Enum
Bottomโ€”

Squash only: the edge that stays put. Bottom = squash against the ground.

  • BottomBottom
  • CenterCenter
  • TopTop
Preserve Volume
volume_preserve
Bool
trueโ€”

Squash only: bulge sideways by the amount you squash, like real rubber.

Waves
waves
Float
20.25โ€“8 / step 0.25

How many waves fit across the path. More = wigglier.

Pin Ends
pin_ends
Bool
trueโ€”

Keeps both ends of the path still and waves only the middle (like grass or a flag).

Grain (px)
period
Float
162โ€“128 / step 0.5

How coarse the wobble is. Smaller = finer trembling.

Phase
phase
Float
00โ€“1 / step 0.01

Wave / Jitter: where in the cycle you are (0-1 = one full loop). Connect a looping motion here to keep it moving.

Seed
seed
Int
420โ€“999999

Jitter only: the random pattern number. Same number = same wobble every time.

Subdivide
subdivide
Int
00โ€“3

Splits segments before deforming (0-3 times). Raise it if a strong bulge looks too angular (Wave/Jitter subdivide automatically).

Overview

Squashes, bulges, waves and wobbles a path. A rubber ball flattening on impact and stretching on the way up, a slime breathing, a flag or grass rippling โ€” exaggerated deformations like these come from a single parameter instead of moving points one by one. The basic workflow is attaching an animation to Amount or Phase with the ๐ŸŽž๏ธ button.

Usage tips

  • Typical wiring: shape generator โ†’ Path Deform โ†’ path_fill / path_stroke โ†’ image. The shape stays continuous until rasterization, so the outline is redrawn crisply every frame.
  • Rubber-ball squash: Mode = Squash, Anchor = Bottom, Preserve Volume ON. Keyframe Amount to dip negative only at the contact frames for an exaggerated bounce.
  • Traveling wave: Mode = Wave and connect a looping motion to Phase. Phase 0-1 is exactly one cycle, so the loop is seamless. Waves is how many waves fit across the path (more = wigglier). With Pin Ends ON (default) the endpoints stay put and only the middle waves โ€” grass and flags.
  • Height-map follow-through: connect a height map built on the same canvas to Map and it comes out with the same deformation applied. If your shading and shadows are derived from that map, highlights follow the squash automatically.
  • Wave and Jitter subdivide automatically to the needed resolution. Raise Subdivide only when a strong bulge looks angular.

Common pitfalls

  • Nothing moves: Amount is still 0, or the motion/keyframe driving it has too small a range.
  • The shape falls apart on Wave/Jitter: the amount is too big. For pixel art, start around amount 2-4 px (fine waves no longer break the shape thanks to automatic subdivision).
  • The map is misaligned: the map must live on the same canvas (same origin and resolution) as the path. An image built on a different canvas will not share the deformation's reference frame.

Related nodes

  • motion / keyframe_clip โ€” drive Amount and Phase (when and how much)
  • path_fill / path_stroke โ€” fill and outline the deformed path
  • bezier_path / multi_path_editor โ€” author the base shape
  • sprite_motion โ€” whole-image movement/rotation/blink rather than deformation
Back to Node List