ComfyUI Node

RS Character Mask

Use a silhouette or painted MASK for one numbered character. Shift and scale about the canvas centre, then expand the white area; overflow is clipped without wrapping. Overrides its point/box in any builder order. Overlaps share captions; outside uses the common prompt. Guides prompt attention, not exact pose. MOSS native JSON requires boxes instead.

By raspie10032·Created 6 days ago·Updated about 18 hours ago· 4
RS Character Mask
  • building_pipe
  • mask
  • building_pipe
  • region_mask
◄character_id1►
◄enabledtrue►
◄margin24►
◄threshold0.50►
◄offset_x0.00►
◄offset_y0.00►
◄scale1.00►
CategoryRS MultiCharacter/Characters

Inputs (9)

NameTypeDefaultDescription
character_idINT11–10Match this number to the Character Prompt row.
enabledBOOLEANtrueOff removes this character's mask and restores its point/box settings.
marginINT240–128Expand the white region in source-mask pixels. Leave room for hair, clothes and interaction.
thresholdFLOAT0.500–1Pixels above this value become white. Gray is not a continuous prompt strength.
building_pipeoptRS_MC_BUILD_PIPE—
maskoptMASKOne full-canvas mask. White selects this character; black excludes it. Parts moved or enlarged outside the canvas are clipped.
offset_xoptFLOAT0.00-1–1Horizontal shift as a fraction of canvas width. Positive moves right; outside is clipped.
offset_yoptFLOAT0.00-1–1Vertical shift as a fraction of canvas height. Positive moves down; outside is clipped.
scaleoptFLOAT1.000.05–4Uniform size ratio about the canvas centre: 0.5 half, 1 original, 2 double. Keeps aspect ratio; outside is clipped.

Outputs (2)

NameTypeDescription
building_pipeRS_MC_BUILD_PIPE—
region_maskMASK—