ComfyUI Node
Image Mesh Drag
A ComfyUI node in image/perturb with 10 inputs and 1 output.
Image Mesh Drag
- image
- image
◄seed0►
◄points12►
◄drag_min0►
◄drag_max32►
◄direction-1►
◄stroke_width-1►
◄displacement_interpolationbicubic►
◄spline_passes2►
◄sampling_interpolationbilinear►
Categoryimage/perturb
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Image to warp spatially using a random mesh drag. | |
| seed | INT | 00–18446744073709550000 | Seed controlling which mesh points are dragged and by how much. |
| points | INT | 120–4096 | Number of mesh vertices to randomly drag. |
| drag_min | FLOAT | 00–4096 | Minimum drag distance (image pixels). |
| drag_max | FLOAT | 320–4096 | Maximum drag distance (image pixels). |
| direction | FLOAT | -1-1–360 | Drag direction in degrees (0=up, 90=right, 180=down, 270=left). Set to -1 to allow random directions. |
| stroke_width | FLOAT | -1-1–16384 | When >0, limits the warp to narrow brush-stroke channels aligned with the direction (one per dragged mesh point; stroke centers are jittered when direction is fixed). Units are image pixels. Set to -1 to disable. |
| displacement_interpolationopt | COMBO | bicubic | How to interpolate the sparse mesh drags into a full displacement field. Use 'bspline' for smoother, more organic warps. |
| spline_passesopt | INT | 20–16 | Only used when displacement_interpolation = 'bspline'. More passes = smoother warp. |
| sampling_interpolationopt | COMBO | bilinear | How to sample the source image when applying the warp (bilinear/bicubic/nearest). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |