Nodes/ComfyUI_KubaNodes/kubakub render passes
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.

By kubakubkub·Created 15 days ago·Updated 3 days ago· 9
kubakub render passes
  • matrix
  • beauty
  • depth
  • normal
  • masks
  • names
  • report
◄folder►
◄render►
◄invert►
◄exclude►
◄depthas rendered►
◄exr_layers►
Categorykubakub/3d/from renders

Inputs (7)

NameTypeDefaultDescription
folderSTRINGThe 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.
renderoptSTRINGWhich render, when the folder holds several (facade_a for facade_a_beauty.png). Empty: the first one; the report lists them.
invertoptSTRINGMasks where black means inside (names, wildcards, comma separated).
excludeoptSTRINGPasses that are no masks (names, wildcards, comma separated).
depthoptCOMBOas renderedHow the depth output reads. The last two stretch it over the whole range.
matrixoptIMAGEYour 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_layersoptSTRINGFor 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)

NameTypeDescription
beautyIMAGEThe picture: the image for the region sampler / versions.
depthIMAGEThe depth pass (black when the folder has none).
normalIMAGEThe normal pass (black when the folder has none).
masksMASKEvery other pass as a mask (batch) -> kubakub regions from masks, masks.
namesSTRINGThe masks' names, one per line -> kubakub regions from masks, names.
reportSTRINGWhat was found in the folder.