ComfyUI > Nodes > ComfyUI-LCS > LCS Color Batch

ComfyUI Node: LCS Color Batch

Class Name

LCSColorBatch

Category
LCS/intervention
Author
facok (Account age: 1139days)
Extension
ComfyUI-LCS
Latest Updated
2026-05-06
Github Stars
0.1K

How to Install ComfyUI-LCS

Install this extension via the ComfyUI Manager by searching for ComfyUI-LCS
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LCS 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

LCS Color Batch Description

Facilitates multi-color generation in AI art projects by assigning distinct color schemes to batch items.

LCS Color Batch:

LCSColorBatch is a node designed to facilitate the application of different target colors to each item within a batch, enabling multi-color generation in AI art projects. This node is particularly useful for artists who wish to apply distinct color schemes to various elements of their work, allowing for a more dynamic and varied output. By parsing comma-separated hex color values, LCSColorBatch installs a post-Conditioned Function Graph (CFG) hook that assigns a unique color target to each batch index. This functionality is crucial for creating artworks with multiple color themes or for experimenting with color variations across different parts of a composition. The node also outputs the batch size, which can be connected to other nodes like EmptyLatentImage, providing a seamless workflow for artists working with batch processing in their creative projects.

LCS Color Batch Input Parameters:

target_colors

This parameter accepts a string of comma-separated hex color values, which are used to define the target colors for each batch item. The function of this parameter is to specify the desired color palette that will be applied to the batch items, allowing for individual color customization. The impact of this parameter on the node's execution is significant, as it directly influences the color output of each batch item. There are no explicit minimum or maximum values for this parameter, but it is essential to ensure that the hex color values are valid and correctly formatted. The default value is not applicable, as the user must provide the desired color values.

sigma

Sigma is a floating-point parameter that controls the normalization process during color application. It affects the node's execution by determining the level of noise reduction and color smoothing applied to the batch items. The minimum value for sigma is 0.0, which represents a clean and final output, while the maximum value is 1.0, allowing for more significant noise reduction. The default value is typically set to 0.0, but users can adjust it based on the desired level of color refinement.

LCS Color Batch Output Parameters:

batch_size

The batch_size output parameter provides an integer value representing the number of items in the batch. This parameter is crucial for connecting to other nodes, such as EmptyLatentImage, to ensure that the batch processing workflow is correctly aligned. The batch_size output helps users understand the scope of their batch processing and allows for better management of resources and node connections within their projects.

LCS Color Batch Usage Tips:

  • Ensure that the target_colors parameter is correctly formatted with valid hex color values to avoid errors and achieve the desired color output.
  • Experiment with different sigma values to find the optimal balance between noise reduction and color accuracy for your specific project needs.

LCS Color Batch Common Errors and Solutions:

Invalid hex color format

  • Explanation: This error occurs when the target_colors parameter contains improperly formatted hex color values.
  • Solution: Double-check the hex color values to ensure they are correctly formatted, using the standard six-character format (e.g., #RRGGBB).

Sigma value out of range

  • Explanation: This error arises when the sigma parameter is set outside the allowable range of 0.0 to 1.0.
  • Solution: Adjust the sigma value to fall within the specified range, ensuring it is between 0.0 and 1.0 for proper execution.

Batch size mismatch

  • Explanation: This error can occur if there is a discrepancy between the batch size expected by connected nodes and the actual batch size output.
  • Solution: Verify that the batch_size output is correctly connected to other nodes and that all nodes in the workflow are configured to handle the specified batch size.

LCS Color Batch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LCS
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 Models, enabling artists to harness the latest AI tools to create incredible art.