LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerUtility: TextJoin

Documentation: LayerUtility: TextJoin Node

Overview

The LayerUtility: TextJoin node is a utility node in the ComfyUI framework designed to concatenate multiple text strings into a single unified output. This node is useful in scenarios where combining text inputs for further processing or display is necessary. It supports optional inputs to provide flexibility and control over the text joining process.

Node Functionality

The primary function of the LayerUtility: TextJoin node is to combine up to four different text inputs into a single string. This combination is performed using a comma as a default separator. This foundational feature can be beneficial in workflows that require simple and efficient text management.

Inputs

Required Input

  • text_1: The primary text input string. It is required to initiate the concatenation process. If this input is empty, no text concatenation occurs.

Optional Inputs

  • text_2, text_3, text_4: These inputs are optional and allow for additional text strings to be appended to text_1. If a field is left empty, it is ignored during the concatenation process.

Outputs

  • text: The output of this node is a single concatenated string derived from the provided non-empty text inputs. If only text_1 is provided, the output will simply be text_1. If additional texts are provided, they are combined with text_1 using a comma as a separator.

Usage in ComfyUI Workflows

This node can be integrated into ComfyUI workflows where text data manipulation is required. For instance, when merging various strings that represent different data fields, such as names or titles with descriptive texts, this node streamlines the process. It facilitates effective data handling and formatting before passing on the output to subsequent nodes that may require a unified string input.

Special Features and Considerations

  • Flexibility in Inputs: The node's capability to accept multiple optional inputs provides users with the flexibility to control which and how many strings they intend to join.
  • Default Delimiter: The node uses a comma as the default separator, which can be ideal in creating lists or simple data formats. Users interested in customized delimiters may consider using the "LayerUtility: TextJoinV2" version, which offers support for a user-defined delimiter.
  • Returns Unicode-Compatible Strings: The node ensures that the output is compatible with Unicode standards, effectively handling a wide variety of characters.

In summary, the LayerUtility: TextJoin node is a straightforward yet powerful tool for text concatenation, proving particularly useful in complex workflows where managing multiple text inputs is crucial. It simplifies the process of creating clean and organized text formats in ComfyUI.