ComfyUI > Nodes > ComfyUI-CoCoTools_IO > Load EXR Layer by Name

ComfyUI Node: Load EXR Layer by Name

Class Name

LoadExrLayerByName

Category
Image/EXR
Author
Conor-Collins (Account age: 522days)
Extension
ComfyUI-CoCoTools_IO
Latest Updated
2025-05-30
Github Stars
0.04K

How to Install ComfyUI-CoCoTools_IO

Install this extension via the ComfyUI Manager by searching for ComfyUI-CoCoTools_IO
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CoCoTools_IO in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Load EXR Layer by Name Description

Extract specific layers from EXR files for enhanced manipulation and utilization in projects.

Load EXR Layer by Name:

The LoadExrLayerByName node is designed to facilitate the extraction of specific layers from an EXR file, which is a high-dynamic-range image file format commonly used in visual effects and computer graphics. This node functions similarly to the Shuffle node in Nuke, allowing you to select and output a particular layer from an EXR layer dictionary. By providing a straightforward method to access individual layers, this node enhances your ability to manipulate and utilize specific image data within your projects. This capability is particularly beneficial when working with complex EXR files that contain multiple layers, such as different lighting passes or material IDs, enabling you to isolate and work with the exact data you need for your creative tasks.

Load EXR Layer by Name Input Parameters:

layers

This parameter represents the collection of layers available within the EXR file. It is a required input that allows the node to access and identify the layers from which you can select. The layers parameter is crucial for the node's operation as it provides the context needed to locate and extract the specified layer.

layer_name

The layer_name parameter is a required input that specifies the name of the layer you wish to extract from the EXR file. It is a string input with a default value of "none" and is not multiline. This parameter is essential for directing the node to the correct layer within the EXR file. You can find the available layer names in the metadata output of the Load EXR node, which helps ensure you select the correct layer for your needs.

conversion

This optional parameter allows you to specify how the extracted layer should be converted. It offers three options: "Auto," "To RGB," and "To Mask," with "Auto" being the default setting. The conversion parameter provides flexibility in how the extracted data is processed, enabling you to tailor the output to suit your specific requirements, whether you need a color image or a mask.

Load EXR Layer by Name Output Parameters:

image

The image output parameter provides the extracted layer as an image. This output is crucial for visualizing and further processing the specific layer data you have selected from the EXR file. It allows you to integrate the extracted image into your workflow, whether for compositing, editing, or analysis.

mask

The mask output parameter delivers the extracted layer as a mask. This output is particularly useful when you need to isolate certain elements within the image, such as specific objects or areas, for further manipulation or compositing. The mask output enhances your ability to work with precise selections within the EXR file.

Load EXR Layer by Name Usage Tips:

  • Ensure that you have the correct layer name by checking the metadata output of the Load EXR node to avoid errors in layer extraction.
  • Use the conversion parameter to automatically adjust the output format to suit your needs, whether you require an RGB image or a mask.
  • When working with complex EXR files, consider using hierarchical or subimage matches to find the correct layer if the exact name is not known.

Load EXR Layer by Name Common Errors and Solutions:

Layer 'layer_name' not found and no close matches

  • Explanation: This error occurs when the specified layer name does not match any available layers in the EXR file, and no close matches are found.
  • Solution: Verify the layer name by checking the metadata output of the Load EXR node. Ensure that the name is correctly spelled and matches the available layers.

Layer 'layer_name' has an unsupported tensor shape

  • Explanation: This error indicates that the extracted layer has a tensor shape that the node does not support.
  • Solution: Check the layer's data type and ensure it is compatible with the node's expected input formats. If necessary, adjust the layer selection or conversion settings to obtain a supported format.

Load EXR Layer by Name Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CoCoTools_IO
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.