ComfyUI > Nodes > CRT-Nodes > String Batcher (CRT)

ComfyUI Node: String Batcher (CRT)

Class Name

CRT_StringBatcher

Category
CRT/Text
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

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

String Batcher (CRT) Description

The CRT_StringBatcher node efficiently batches, randomizes, and joins strings for text processing.

String Batcher (CRT):

The CRT_StringBatcher node is designed to streamline the process of managing and manipulating strings in a batch format. This node is particularly useful for AI artists who need to handle multiple text inputs efficiently. It allows you to consolidate, randomize, and join strings with ease, providing a flexible approach to text processing. The node's primary function is to batch strings together, offering options to remove line breaks, add suffixes, and choose separators for joining strings. Additionally, it supports randomization of string order and saving processed strings to files, making it a versatile tool for text-based projects.

String Batcher (CRT) Input Parameters:

consolidate_lines

This parameter is a boolean that determines whether line breaks within each individual string input should be removed. When set to True, it consolidates the text into a single line, which can be useful for creating more compact outputs. The default value is True.

join_with

This parameter allows you to choose how the strings will be joined together. You can select between "Newline" and "Space", where "Newline" provides a return to line behavior between strings, and "Space" joins them with a space. This choice affects the readability and format of the final output.

suffix

This string parameter lets you specify characters to add to the end of each string before they are joined. It does not support multiline input and defaults to an empty string. This can be useful for adding punctuation or other delimiters to your text.

randomize

A boolean parameter that, when enabled, randomizes the order of the processed strings. This can be particularly useful for creating varied outputs from the same set of inputs. The default value is False.

seed

This integer parameter sets the seed for randomization, ensuring reproducibility of results. It accepts values from 0 to 0xFFFFFFFFFFFFFFFF, with a default of 0. Adjusting the seed allows for different randomization patterns.

save_to_file

This boolean parameter enables the saving of each processed string as a .txt file. When activated, it ensures that your outputs are stored for future reference or use. The default setting is False.

String Batcher (CRT) Output Parameters:

string_output

The string_output parameter provides the final processed string after all specified operations have been applied. This output is crucial as it represents the culmination of the node's batching, joining, and optional randomization processes, ready for use in your projects.

String Batcher (CRT) Usage Tips:

  • To maintain the original order of strings while still using other features, ensure that the randomize parameter is set to False.
  • Use the suffix parameter to add consistent punctuation or markers to your strings, enhancing the clarity and structure of your output.
  • If you need to save your outputs for documentation or further processing, enable the save_to_file option to automatically generate .txt files.

String Batcher (CRT) Common Errors and Solutions:

Error: "Invalid seed value"

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is an integer between 0 and 0xFFFFFFFFFFFFFFFF.

Error: "Unsupported join option"

  • Explanation: The join_with parameter was set to a value other than "Newline" or "Space".
  • Solution: Verify that the join_with parameter is set to either "Newline" or "Space".

Error: "File saving failed"

  • Explanation: The node was unable to save the processed strings to a file, possibly due to permission issues or incorrect file paths.
  • Solution: Check the file path settings and ensure that the application has the necessary permissions to write to the specified directory.

String Batcher (CRT) Related Nodes

Go back to the extension to check out more related nodes.
CRT-Nodes
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.