Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for combining multiple text inputs with weights and options for AI artists' efficient text manipulation.
The MultiTextNode
is a versatile tool designed to help you combine multiple text inputs into a single cohesive string. This node is particularly useful for AI artists who need to manage and manipulate large sets of text data efficiently. By allowing you to input up to 20 different text strings, each with its own weight and enable/disable option, the MultiTextNode
provides a high degree of flexibility in text composition. The node's primary function is to concatenate these text inputs, applying specified weights to each, and output a single string that can be used in various creative and computational contexts. This capability is especially beneficial for tasks that require dynamic text generation or complex text-based configurations.
The separator
parameter defines the character or string used to separate each text input in the final concatenated output. By default, it is set to a single space " "
, but you can customize it to any string that suits your needs, such as a comma or a newline character. This parameter allows you to control the formatting of the combined text, ensuring it meets your specific requirements.
The active
parameter is a boolean that determines whether the node should perform the text combination operation. When set to True
(the default), the node is active and will process the inputs. If set to False
, the node will return an empty string, effectively disabling its functionality. This parameter is useful for conditionally enabling or disabling the node's operation without removing it from your workflow.
Each enabled
parameter corresponds to one of the 20 possible text inputs and is a boolean that specifies whether the respective text input should be included in the final output. By default, all are set to True
, meaning all text inputs are considered. Setting any of these to False
will exclude the corresponding text from the concatenation process, allowing you to selectively include or exclude text inputs as needed.
These parameters represent the actual text inputs that you want to combine. Each text
parameter can hold a string of text, and you can input up to 20 different text strings. These inputs are the core content that the node processes, and they can be dynamically adjusted to fit the context of your project.
The weight
parameters allow you to assign a numerical weight to each corresponding text input, ranging from 0.0 to 2.0, with a default value of 1.0. This weight affects how the text is represented in the final output, with the format "(text:weight)"
if the weight is not 1.0. This feature is particularly useful for emphasizing certain text inputs over others in the combined output.
The output parameter is a single string that represents the concatenated result of all enabled and weighted text inputs, separated by the specified separator. This output is crucial for any application that requires a unified text string derived from multiple sources, providing a streamlined and efficient way to handle complex text data.
separator
parameter to format your output string according to your project's needs, such as using commas for lists or newlines for paragraphs.weight
parameters to emphasize certain text inputs, which can be useful for creating dynamic prompts or weighted text configurations.enabled
parameters to quickly toggle the inclusion of specific text inputs without altering the overall setup of your node.text1
to text20
parameters, the node will treat it as an empty string.separator
parameter is not correctly set, the default space separator will be used.separator
parameter is set to your desired string and that it is correctly formatted.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.