ComfyUI Node
kubakub scene pieces
The pieces of the facade model that can move: every loose part (a stone, a window frame, a cornice block) bigger than min_size_m. The biggest part (the wall they sit on) stays. Chain kubakub pieces transform nodes after it and render with kubakub pieces render.
kubakub scene pieces
- scene
- regions
- pieces
- preview
- report
- mask
◄min_size_m0.20►
◄max_size_m0.0►
◄keep_largesttrue►
◄sourceloose parts►
◄selection►
Categorykubakub/3d/pieces
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| scene | KUBA_SCENE | From kubakub scene render. | |
| min_size_m | FLOAT | 0.200–100 | Smaller parts stay still (size = the diagonal of the part's box, metres). |
| max_size_m | FLOAT | 0.00–1000 | Bigger parts stay still too (0 = no limit). |
| keep_largest | BOOLEAN | true | The biggest part (usually the wall) stays still. |
| regionsopt | KUBA_REGIONS | Regions of the facade (regions from id maps / masks / cryptomatte ...): every part belongs to the region most of it is in. | |
| sourceopt | COMBO | loose parts | regions: one piece each = every region moves as one block (a floor, a bay, all windows); parts inside = only the parts in the selected regions move, each on its own. |
| selectionopt | STRING | Which regions (names, 'group:windows', 'tag:left', 'a, b'). Empty = all. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| pieces | KUBA_PIECES | The pieces that can move -> kubakub pieces transform (or straight to kubakub pieces render). |
| preview | IMAGE | Every piece in its own colour, still parts grey. |
| report | STRING | How many pieces of how many loose parts, their sizes (metres) and the facade's size. |
| mask | MASK | 1 on the pieces that can move, 0 on the still parts and the background (the projection view, at the scene's size). |