ComfyUI Node
kubakub render passes
Your own render as the start: reads a folder of passes written by any 3D tool, named <render>_<pass>.png or .exr (facade_beauty.png, facade_depth.png, facade_normal.png, facade_cut.png), or one multilayer EXR: the node shows which layers are inside and you pick them. Gives the picture, depth and normals, and every other pass as a mask with its name. Connect masks and names to kubakub regions from masks: each mask becomes a region you can repaint while the rest of the render stays as it is.
kubakub render passes
- matrix
- beauty
- depth
- normal
- masks
- names
- report
◄folder►
◄render►
◄invert►
◄exclude►
◄depthas rendered►
◄exr_layers►
Categorykubakub/3d/from renders
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| folder | STRING | The folder with your passes, or one multilayer .exr file: paste its path (Explorer: Copy as path; the quotes are fine). Empty: built-in sample passes, so the node runs as it is. | |
| renderopt | STRING | Which render, when the folder holds several (facade_a for facade_a_beauty.png). Empty: the first one; the report lists them. | |
| invertopt | STRING | Masks where black means inside (names, wildcards, comma separated). | |
| excludeopt | STRING | Passes that are no masks (names, wildcards, comma separated). | |
| depthopt | COMBO | as rendered | How the depth output reads. The last two stretch it over the whole range. |
| matrixopt | IMAGE | Your matrix: a render of another size is fitted to it (picture, depth, normal and masks; same proportions only). Without: the render's own size. | |
| exr_layersopt | STRING | For a multilayer EXR: which layers become masks, one name per line (wildcards work: wall*). Click the layer buttons on the node, or type. Empty: every layer that looks like a mask. The picture, depth and normal are found by their names; to say it yourself write 'picture = C', 'depth = Z_render', 'normal = N_world', 'mask = diffuse' or 'skip = name'. A plain name is a mask, unless that layer is the picture, depth or normal. The report lists every layer of the file. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| beauty | IMAGE | The picture: the image for the region sampler / versions. |
| depth | IMAGE | The depth pass (black when the folder has none). |
| normal | IMAGE | The normal pass (black when the folder has none). |
| masks | MASK | Every other pass as a mask (batch) -> kubakub regions from masks, masks. |
| names | STRING | The masks' names, one per line -> kubakub regions from masks, names. |
| report | STRING | What was found in the folder. |