ComfyUI Node
kubakub mask field
Regions as a grey ramp instead of on / off: black is where a move starts, white where it ends. The distance from each region's edge, a direction, the distance from a point, one step per region in an order, or noise. kubakub mask animate runs a reveal, a band or rings along it; it also works as a soft mask or a time offset in any other tool. Nothing connected = the windows of the sample facade.
kubakub mask field
- regions
- mask
- field
- mask
- report
◄select*►
◄fieldedge distance►
◄pereach region►
◄angle0►
◄orderleft►
◄centre_x0.50►
◄centre_y0.50►
◄noise_px64►
◄seed1►
◄invertfalse►
◄split_shapestrue►
Categorykubakub/2d/masks
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| select | STRING | * | Which regions, in plan syntax: 'W_F1_*', 'group:Windows', 'tag:front', comma = or, space = and, '!' = not. * = all. |
| field | COMBO | edge distance | edge distance: black on the edge of a region, white at its deepest point. direction: black to white along 'angle'. radial: black at the centre, white farthest out. region order: one flat grey per region, in 'order'. noise: soft random greys. |
| per | COMBO | each region | each region: every region runs from black to white on its own (all windows open at once). all together: one ramp over all of them (a wipe across the facade). No effect on region order and noise. |
| angle | FLOAT | 0-360–360 | direction: degrees. 0 = left to right, 90 = top to bottom, 180 = right to left. |
| order | COMBO | left | region order: which region comes first. left / right / top / bottom = from that side; centre = from the middle out; outside = towards the middle; size = the biggest first; random. |
| centre_x | FLOAT | 0.50-1–2 | radial, all together: the centre, 0 = left edge of the picture, 1 = right edge. |
| centre_y | FLOAT | 0.50-1–2 | radial, all together: the centre, 0 = top edge, 1 = bottom edge. |
| noise_px | FLOAT | 642–4096 | noise: the size of the blobs in pixels. |
| seed | INT | 10–2147483647 | noise and region order = random: another pattern. |
| invert | BOOLEAN | false | Black and white swapped: the move runs the other way. |
| regionsopt | KUBA_REGIONS | From any kubakub regions node. Empty (and no mask) = the windows of the sample facade. | |
| maskopt | MASK | Instead of regions: a mask or a mask batch. Each mask is a region; with split_shapes each separate shape is one. | |
| split_shapesopt | BOOLEAN | true | mask input: on = every separate shape is its own region; off = one region per mask. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| field | MASK | The grey ramp, 0 to 1 inside the regions, 0 outside. |
| mask | MASK | 1 on the regions the field covers. Connect it to 'mask' of kubakub mask animate. |
| report | STRING | How many regions, the size, and what was used when nothing was connected. |