Nodes/Skoogeer-Noise/Latent Mesh Drag
ComfyUI Node

Latent Mesh Drag

A ComfyUI node in latent/perturb with 11 inputs and 1 output.

By ttulttul·Created 8 months ago·Updated 2 months ago· 14
Latent Mesh Drag
  • latent
  • mask
  • latent
seed0
points12
drag_min0.0
drag_max4.0
direction-1
stroke_width-1
displacement_interpolationbicubic
spline_passes2
sampling_interpolationbilinear
Categorylatent/perturb

Inputs (11)

NameTypeDefaultDescription
latentLATENTLatent to warp spatially using a random mesh drag.
seedINT00–18446744073709550000Seed controlling which mesh points are dragged and by how much.
pointsINT120–2048Number of mesh vertices to randomly drag.
drag_minFLOAT0.00–128Minimum drag distance (latent pixels).
drag_maxFLOAT4.00–128Maximum drag distance (latent pixels).
directionFLOAT-1-1–360Drag direction in degrees (0=up, 90=right, 180=down, 270=left). Set to -1 to allow random directions.
stroke_widthFLOAT-1-1–4096When >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 latent pixels. Set to -1 to disable.
maskoptMASKOptional mask (often image-sized) to limit the warp to masked areas. The mask is resized to latent resolution (bicubic when downscaling).
displacement_interpolationoptCOMBObicubicHow to interpolate the sparse mesh drags into a full displacement field. Use 'bspline' for smoother, more organic warps.
spline_passesoptINT20–16Only used when displacement_interpolation = 'bspline'. More passes = smoother warp.
sampling_interpolationoptCOMBObilinearHow to sample the source tensor when applying the warp (bilinear/bicubic/nearest).

Outputs (1)

NameTypeDescription
latentLATENT