ComfyUI Node: Textbox

Class Name

Textbox

Category
Chibi-Nodes/Text
Author
chibiace (Account age: 2903days)
Extension
ComfyUI-Chibi-Nodes
Latest Updated
2024-07-29
Github Stars
0.04K

How to Install ComfyUI-Chibi-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-Chibi-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Chibi-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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Textbox Description

Handle and manipulate text input for AI art projects with options for processing and display, offering flexibility and user-friendly text integration.

Textbox:

The Textbox node is designed to handle and manipulate text input within your AI art projects. It allows you to input text strings, which can be either single-line or multi-line, and provides options to control how the text is processed and displayed. This node is particularly useful for scenarios where you need to input or modify text dynamically, offering flexibility with its passthrough feature. The main goal of the Textbox node is to facilitate text handling in a user-friendly manner, making it easier for you to integrate text into your creative workflows.

Textbox Input Parameters:

text

This parameter accepts a string input, which can be either single-line or multi-line. It is the primary text that you want to input or manipulate. The default value is an empty string. The multiline option allows you to input text that spans multiple lines, making it suitable for longer text entries. The forceInput option, when set to False, means that this input is not mandatory. The print_to_screen option, when set to True, will display the text on the screen.

passthrough

This optional parameter also accepts a string input, which can be either single-line or multi-line. It is used to override the primary text input if provided. The default value is an empty string. The multiline option allows for multi-line text input, and the forceInput option, when set to True, makes this input mandatory if used.

Textbox Output Parameters:

text

This output parameter returns the processed text string. If the passthrough parameter is provided and not empty, it will override the primary text input and be returned as the output. Otherwise, the primary text input is returned. This output is crucial for further text processing or display in your AI art projects.

Textbox Usage Tips:

  • Use the multiline option for the text parameter when you need to input longer text entries that span multiple lines.
  • Utilize the passthrough parameter to dynamically override the primary text input, which can be useful for testing or conditional text changes.
  • Enable the print_to_screen option to visualize the text input directly on the screen, aiding in debugging and ensuring the correct text is being processed.

Textbox Common Errors and Solutions:

"Text input is required"

  • Explanation: This error occurs when the text parameter is left empty, and no passthrough value is provided.
  • Solution: Ensure that either the text or passthrough parameter is filled with the desired text input.

"Passthrough input is required"

  • Explanation: This error occurs when the passthrough parameter is set to mandatory (forceInput is True) but is left empty.
  • Solution: Provide a valid string input for the passthrough parameter or set forceInput to False if the passthrough input is not necessary.

"Invalid text format"

  • Explanation: This error occurs when the text input does not meet the expected format, such as containing unsupported characters.
  • Solution: Check the text input for any unsupported characters or formatting issues and correct them before inputting the text.

Textbox Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Chibi-Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.