Nodes/ComfyUI_RaykoStudio/๐ŸฆŠ RS Intermediate Spline Mask
ComfyUI Node

๐ŸฆŠ RS Intermediate Spline Mask

Pause mid-run, lasso the exact region, and continue โ€” masks without pre-planning

By RaykosanยทCreated about a year agoยทUpdated 5 days agoยท 79
๐ŸฆŠ RS Intermediate Spline Mask
  • image
  • image
  • mask
โ—„coordinates[]โ–บ

The standard ComfyUI flow forces you to decide the mask before you run - load an image, scribble a mask, then run. But sometimes you only know what you want to mask once you're looking at an intermediate result mid-pipeline. ๐ŸฆŠ RS Intermediate Spline Mask (RaykoIntermediateSplineMask) is for that moment: the workflow pauses when it hits the node, you draw a lasso-style polygon right on the image, hit ACCEPT, and processing continues with your mask.

How it works

The name "spline" is the key detail. Instead of a paintbrush mask, you click to drop polygon points, and the node builds a smooth spline through them - the README compares it to Photoshop's Lasso tool, and the accuracy is genuinely better for hard-edged selections than freehand painting. In a single run: queue the prompt โ†’ the node shows the input image and suspends the pipeline โ†’ you add points, Ctrl+click to delete misplaced ones, and hit โœ”๏ธ ACCEPT โ†’ the node passes the original image through unchanged along with a white-on-black mask where white is your selection. โŒ CANCEL aborts the run entirely.

There's also a batch mode via the โš™๏ธ BATCH button. Click it before ACCEPT and the saved mask gets reused automatically for every subsequent iteration in a batch queue - no re-drawing each frame. Batch mode resets itself when the queue finishes, if you hit CANCEL, or if you delete the node.

Inputs and output

  • image - any IMAGE from upstream.
  • coordinates (optional) - a serialized string of polygon points; this is how the drawn mask state travels in the workflow.

Outputs: image (the original, unchanged) and mask (MASK, white = your selected polygon).

How to install

Part of ComfyUI_RaykoStudio:

cd ComfyUI/custom_nodes
git clone https://github.com/Raykosan/ComfyUI_RaykoStudio.git

Restart ComfyUI, or install via ComfyUI Manager (search "ComfyUI_RaykoStudio"). No model downloads; it's all local geometry.

Common issues

  • Pipeline looks hung. It's not - it's waiting for you to draw and click โœ”๏ธ ACCEPT. This is the one thing every interactive node in this pack shares, and it's the most common "why is nothing happening" report.
  • Points in the wrong place. Ctrl+click a point to delete it, or hit ๐Ÿ”ด CLEAR POINTS to wipe the polygon and redraw. Notably, after CLEAR POINTS you don't need to re-queue - just draw and ACCEPT again.
  • Mask is inverted from what you expected. White in the output = your selection. If your downstream inpaint node expects black-to-select, flip it before use.

The honest framing: if you always know your mask before you start, the pack's other spline node (RaykoSplineMask, "RS Load Image") is simpler - it's a Load Image with a built-in spline editor, no pausing. This one exists for mid-pipeline decisions and batch reuse, which is a narrower but real niche. It's a good fit with the crop-and-stitch inpainting pattern: select a region at full resolution, edit it, stitch back.

Category๐ŸฆŠ RaykoStudio

Inputs (2)

NameTypeDefaultDescription
imageIMAGEโ€”
coordinatesoptSTRING[]โ€”

Outputs (2)

NameTypeDescription
imageIMAGEโ€”
maskMASKโ€”