What is it for?
- Move a shape path to another position
- Reuse the same shape with rotation or scaling
- Prepare a path before passing it to
PathMaskorShape Sweep
Overview
Moves, scales, and rotates a path. Unlike image transform, it operates at the
vector stage, so rotation and non-integer scaling do not degrade the shape. The
right order is to adjust the shape before rasterizing with path_stroke/fill.
- Version: 3
Usage tips
- Rotating with this node while still a path produces cleaner lines than rasterizing
first and applying
pixel_rotate, because rasterization runs against the rotated shape. - The go-to animation chain is waveform-driven
rotationoroffset→ rasterization →animation_render. Sword swings and pendulums retain vector quality. pivot_modeis the most important setting for how rotation looks. For a pendulum, specify its support point withCustom.
Common pitfalls
- Rotation sends the shape to an unexpected position: the pivot is not what you
intended. Try
Centerfirst, then set the support explicitly withCustom. - A positive angle looks clockwise: image coordinates point downward on Y, so a
positive
rotationappears clockwise on screen. - Scaling moves the shape beyond the canvas: path coordinates are not constrained or clipped by the canvas. Expand the rasterization canvas or bring the path back with an offset.
Pivot meanings
| Value | Description |
|---|---|
Center |
Use the bounds center computed from the actual Bézier curve extrema, not the control-point box |
Origin |
Use the origin (0, 0) |
CanvasCenter |
Use pixel-center coordinates ((width - 1) / 2, (height - 1) / 2); even dimensions place it between pixels |
Custom |
Set it with pivot_x / pivot_y |
Examples
Shape.path -> Path Transform -> PathMask- Move the same shape to create a mask elsewhere.
rotation = 45°- Turn a rectangular path into a diagonal band.
scale_x = 2.0,scale_y = 0.5- Make the shape wide and short.
pivot_mode = Origin- Rotate around the origin.
Related nodes
path_array— repeat placement while transformingpath_combine— merge multiple transformed pathstransform/pixel_rotate— transform at the image stage when a path is unavailablepath_sample/path_tangent— extract numeric position or direction along a path