Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamic selection of text or image output based on input parameter for AI artists, streamlining content management.
The ImgTextSwitch node is designed to dynamically select and output either text or image data based on a specified input parameter. This node is particularly useful for AI artists who need to switch between multiple text and image inputs within their workflows. By providing a flexible mechanism to choose between different inputs, the ImgTextSwitch node helps streamline the creative process, allowing for more efficient and organized management of content. The primary function of this node is to return the selected text or image based on the active input parameter, ensuring that the desired content is easily accessible and ready for further processing or display.
This parameter determines which set of text and image inputs will be selected and output by the node. It accepts an integer value with a minimum of 1 and a maximum of 3, with a default value of 1. The active_input parameter is crucial as it dictates the node's behavior, allowing you to switch between different content sets based on your needs.
This optional parameter allows you to input the first set of multiline text. It supports multiline text input and requires forced input, meaning you must provide a value if this parameter is used. This text will be selected if active_input is set to 1.
This optional parameter allows you to input the first image. It accepts image data and has a default value of None. This image will be selected if active_input is set to 1.
This optional parameter allows you to input the second set of multiline text. It supports multiline text input and requires forced input, meaning you must provide a value if this parameter is used. This text will be selected if active_input is set to 2.
This optional parameter allows you to input the second image. It accepts image data and has a default value of None. This image will be selected if active_input is set to 2.
This optional parameter allows you to input the third set of multiline text. It supports multiline text input and requires forced input, meaning you must provide a value if this parameter is used. This text will be selected if active_input is set to 3.
This optional parameter allows you to input the third image. It accepts image data and has a default value of None. This image will be selected if active_input is set to 3.
This output parameter returns the selected multiline text based on the active_input parameter. It provides the text content that corresponds to the chosen input set, allowing you to use this text in subsequent nodes or processes.
This output parameter returns the selected image based on the active_input parameter. It provides the image content that corresponds to the chosen input set, allowing you to use this image in subsequent nodes or processes.
© Copyright 2024 RunComfy. All Rights Reserved.