ComfyUI > Nodes > ComfyUI-CoCoTools_IO > Cryptomatte Layer

ComfyUI Node: Cryptomatte Layer

Class Name

CryptomatteLayer

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

Cryptomatte Layer Description

Efficiently extract and process specific cryptomatte layers based on name, enabling precise selection and manipulation in visual effects workflows.

Cryptomatte Layer:

The CryptomatteLayer node is designed to facilitate the extraction and processing of specific cryptomatte layers from a given dataset. Cryptomatte is a widely used technique in visual effects and compositing that allows for the creation of accurate mattes for complex scenes, enabling precise selection and manipulation of individual elements within an image. This node's primary purpose is to identify and extract the desired cryptomatte layer based on its name, even accommodating hierarchical naming conventions. By leveraging this node, you can efficiently manage and utilize cryptomatte data, ensuring that the correct layers are accessed and processed for further artistic manipulation. The node is particularly beneficial in workflows where precise control over individual scene elements is required, such as in compositing and post-production tasks.

Cryptomatte Layer Input Parameters:

cryptomatte

The cryptomatte parameter is a dictionary that maps cryptomatte layer names to their corresponding tensors. This input serves as the source from which specific cryptomatte layers are extracted. The dictionary should contain all available cryptomatte layers, allowing the node to search and retrieve the desired layer based on the provided layer_name. The quality and accuracy of the output depend on the completeness and correctness of this input data.

layer_name

The layer_name parameter specifies the name of the cryptomatte layer you wish to extract. It is crucial for identifying the correct layer within the cryptomatte dictionary. The parameter supports case-insensitive matching and can handle hierarchical names, making it flexible in accommodating various naming conventions. If the specified layer name is not found, the node attempts to find a close match or defaults to the first available layer, ensuring that the process continues smoothly.

Cryptomatte Layer Output Parameters:

cryptomatte_image_tensor

The cryptomatte_image_tensor is the output parameter that contains the tensor representation of the extracted cryptomatte layer. This tensor is crucial for further processing and manipulation in your compositing workflow. It provides the necessary data to isolate and work with specific elements within a scene, enabling precise control over visual effects and adjustments. The output is a list containing the tensor, ensuring compatibility with subsequent processing nodes.

Cryptomatte Layer Usage Tips:

  • Ensure that the cryptomatte dictionary is comprehensive and accurately reflects the available layers to maximize the node's effectiveness in extracting the correct layer.
  • When specifying the layer_name, consider using a case-insensitive approach or providing partial names to leverage the node's ability to find close matches, especially in complex scenes with hierarchical naming.

Cryptomatte Layer Common Errors and Solutions:

No cryptomatte layers available in the input

  • Explanation: This error occurs when the cryptomatte dictionary is empty or not provided, leaving the node with no data to process.
  • Solution: Verify that the cryptomatte input is correctly populated with available layer names and their corresponding tensors before executing the node.

Cryptomatte layer '<layer_name>' not found and no close matches

  • Explanation: The specified layer_name does not match any available layers in the cryptomatte dictionary, and no close matches could be identified.
  • Solution: Double-check the layer_name for typos or case sensitivity issues. Consider using partial names or reviewing the available layers to ensure the correct name is provided.

No cryptomatte layer specified, returning empty tensor

  • Explanation: This warning indicates that no layer_name was provided, or "none" was selected, resulting in an empty tensor being returned.
  • Solution: Specify a valid layer_name to extract the desired cryptomatte layer, ensuring that the node can process and return meaningful data.

Cryptomatte Layer 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.