ComfyUI > Nodes > comfyui_AcademiaSD > Prompt Batch Selector (by line) v1.2.1

ComfyUI Node: Prompt Batch Selector (by line) v1.2.1

Class Name

PromptBatchSelector

Category
ComfyUI_AcademiaSD/Conditioning
Author
AcademiaSD (Account age: 683days)
Extension
comfyui_AcademiaSD
Latest Updated
2026-04-05
Github Stars
0.03K

How to Install comfyui_AcademiaSD

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

Prompt Batch Selector (by line) v1.2.1 Description

Dynamically selects and combines text prompts for AI models based on batch index.

Prompt Batch Selector (by line) v1.2.1:

The PromptBatchSelector node is designed to enhance your creative workflow by allowing you to dynamically select and combine text prompts for conditioning AI models. This node is particularly useful when you want to apply different prompts to different batches of data, enabling more nuanced and varied outputs. By leveraging a common prompt and a list of specific prompts, the node intelligently combines them based on the batch index you specify. This functionality is crucial for artists and developers who wish to experiment with multiple scenarios or themes in a single run, thereby saving time and effort while ensuring consistency and quality in the generated outputs.

Prompt Batch Selector (by line) v1.2.1 Input Parameters:

clip

The clip parameter represents the CLIP model instance that will be used for encoding the text prompts. This parameter is essential as it determines the model context in which the prompts will be processed, directly impacting the quality and relevance of the output.

batch_index

The batch_index parameter is an integer that specifies which line from the prompts_by_line should be selected and combined with the common_prompt. It starts from 1, with a default value of 1, and must be at least 1. This parameter allows you to target specific prompts for different batches, enabling precise control over the conditioning process.

common_prompt

The common_prompt parameter is a multiline string that serves as the base prompt applied to all batches. It has a default value of "beautiful scenery, masterpiece, best quality". This parameter provides a consistent thematic or stylistic foundation that is combined with specific prompts to create a cohesive output.

prompts_by_line

The prompts_by_line parameter is a multiline string containing different prompts, each on a new line. The default value includes prompts like "a happy person smiling", "a sad person crying", and "an angry person shouting". This parameter allows you to define a variety of specific scenarios or themes that can be selectively applied to different batches, enhancing the diversity of the generated content.

Prompt Batch Selector (by line) v1.2.1 Output Parameters:

CONDITIONING

The CONDITIONING output is the result of the combined prompts processed through the CLIP model. This output is crucial as it represents the encoded text that will condition the AI model, influencing the final generated content. The quality and relevance of this output are directly tied to the input prompts and the selected batch index.

Prompt Batch Selector (by line) v1.2.1 Usage Tips:

  • Ensure that your batch_index is within the range of the number of lines in prompts_by_line to avoid out-of-range errors and ensure the correct prompt is selected.
  • Use a meaningful common_prompt that aligns with your overall artistic vision, as it will be combined with specific prompts to guide the AI model's output.
  • Experiment with different combinations of common_prompt and prompts_by_line to explore a wide range of creative possibilities and discover unique outputs.

Prompt Batch Selector (by line) v1.2.1 Common Errors and Solutions:

[ Prompt Batch Selector (by line) v1.2.1] WARNING: batch_index out of range.

  • Explanation: This error occurs when the batch_index specified is greater than the number of lines available in prompts_by_line.
  • Solution: Verify that your batch_index is within the valid range by ensuring it does not exceed the number of lines in prompts_by_line. Adjust the batch_index accordingly to select a valid prompt.

Prompt Batch Selector (by line) v1.2.1 Related Nodes

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