ComfyUI Node
kubakub regions from cryptomatte
Render a cryptomatte pass in your 3D tool (Blender, Houdini, C4D, Maya ...) and every object becomes a region with its real name from the scene (window_left_03). Objects named alike (window_left_01, _02 ...) share a group; a second cryptomatte layer (materials) adds tags for the plan rules. Also gives the render itself.
kubakub regions from cryptomatte
- matrix
- scope
- regions
- region_masks
- regions_json
- preview
- render
- report
◄file►
◄layerobject►
◄tag_layersmaterial►
◄exclude►
◄min_region_area64►
◄merge_small_regionstrue►
Categorykubakub/3d/from renders
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| file | STRING | Your multilayer EXR with the cryptomatte pass (32-bit): paste its path. Empty: a built-in sample EXR, so the node runs as it is. | |
| layer | STRING | object | Which cryptomatte becomes the regions: object, material, asset, or the layer's full name. |
| tag_layers | STRING | material | Other cryptomatte layers whose names become tags (comma separated); e.g. material -> [tag:glass] in the plan. |
| exclude | STRING | Object names (wildcards) that are no regions. | |
| min_region_area | INT | 640–100000000 | Objects smaller than this (pixels) are merged or dropped. |
| merge_small_regions | BOOLEAN | true | On: small objects join the neighbour with the longest border. Off: dropped. |
| matrixopt | IMAGE | Your matrix: its size is used (the render is resized) and it is the preview background. | |
| scopeopt | MASK | Pixels outside this mask are never part of a region (the size of the matrix, or of the render without one). |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| regions | KUBA_REGIONS | Label map + region table for the kubakub region nodes. |
| region_masks | MASK | One mask per region; batch index = region_id. |
| regions_json | STRING | The region table as text. |
| preview | IMAGE | Regions over the render (or the matrix). |
| render | IMAGE | The render's picture (Combined pass), sRGB. |
| report | STRING | Layers found, objects, groups and tags. |