Nodes/ComfyUI_KubaNodes/kubakub scene pieces
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.

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
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)

NameTypeDefaultDescription
sceneKUBA_SCENEFrom kubakub scene render.
min_size_mFLOAT0.200–100Smaller parts stay still (size = the diagonal of the part's box, metres).
max_size_mFLOAT0.00–1000Bigger parts stay still too (0 = no limit).
keep_largestBOOLEANtrueThe biggest part (usually the wall) stays still.
regionsoptKUBA_REGIONSRegions of the facade (regions from id maps / masks / cryptomatte ...): every part belongs to the region most of it is in.
sourceoptCOMBOloose partsregions: 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.
selectionoptSTRINGWhich regions (names, 'group:windows', 'tag:left', 'a, b'). Empty = all.

Outputs (4)

NameTypeDescription
piecesKUBA_PIECESThe pieces that can move -> kubakub pieces transform (or straight to kubakub pieces render).
previewIMAGEEvery piece in its own colour, still parts grey.
reportSTRINGHow many pieces of how many loose parts, their sizes (metres) and the facade's size.
maskMASK1 on the pieces that can move, 0 on the still parts and the background (the projection view, at the scene's size).