ComfyUI > Nodes > ComfyUI-Image Selector by Prompt > Adv Image Selector by Prompt -- HooToo

ComfyUI Node: Adv Image Selector by Prompt -- HooToo

Class Name

AdvancedImageSelectorByPrompt

Category
Image Processing
Author
colorAi (Account age: 961days)
Extension
ComfyUI-Image Selector by Prompt
Latest Updated
2025-11-09
Github Stars
0.02K

How to Install ComfyUI-Image Selector by Prompt

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

Adv Image Selector by Prompt -- HooToo Description

Facilitates dynamic image selection in prompts by replacing placeholders with specified images.

Adv Image Selector by Prompt -- HooToo:

The AdvancedImageSelectorByPrompt node is designed to facilitate the selection and processing of images based on a given prompt. This node is particularly useful for AI artists who want to dynamically incorporate specific images into their creative workflows by using placeholders within a text prompt. The node allows you to define up to 15 images, each associated with a unique identifier, which can be referenced within the prompt. When the node processes the prompt, it replaces these placeholders with the corresponding images, ensuring that your creative vision is accurately represented. If a placeholder does not have a corresponding image, a default black image is used instead. This functionality provides a flexible and efficient way to manage and manipulate images in your projects, enhancing the creative process by allowing for dynamic image selection and integration.

Adv Image Selector by Prompt -- HooToo Input Parameters:

prompt

The prompt parameter is a string input that allows you to specify a text description containing placeholders for images. These placeholders are denoted by the syntax {@placeholder_name}. The prompt serves as a template where each placeholder can be replaced by a corresponding image, enabling dynamic image selection based on the text input. This parameter is essential for defining the context and content of the images you wish to incorporate into your project. The default value is "A photo of {@cat_image} and {@dog_image}.".

image_A, image_B, ..., image_O

These parameters represent optional image inputs, each associated with a unique identifier from A to O. You can provide up to 15 images, which can be referenced in the prompt using their respective placeholders. Each image input allows you to specify an image that will replace the corresponding placeholder in the prompt. If an image is not provided for a placeholder, a default black image will be used instead. These parameters enable you to customize the images used in your project dynamically.

name_A, name_B, ..., name_O

These optional string parameters allow you to assign custom names to the image inputs from A to O. By providing a custom name, you can reference the image in the prompt using this name instead of the default identifier. This feature offers additional flexibility in managing and organizing your images, making it easier to work with complex projects that require specific image references.

Adv Image Selector by Prompt -- HooToo Output Parameters:

output_1, output_2, output_3, output_4, output_5

These output parameters represent the images selected based on the placeholders in the prompt. Each output corresponds to a placeholder in the prompt, and the node attempts to replace each placeholder with the specified image. If a placeholder does not have a corresponding image, a default black image is used. These outputs allow you to retrieve the processed images for further use in your creative workflow.

prompt

The prompt output is a string that represents the processed version of the input prompt, with placeholders replaced by the text "参考图" followed by a number. This output provides a textual representation of the prompt after image selection, allowing you to verify the changes made during processing.

Adv Image Selector by Prompt -- HooToo Usage Tips:

  • Ensure that your prompt contains correctly formatted placeholders using the syntax {@placeholder_name} to enable proper image selection.
  • Assign meaningful custom names to your images using the name_A to name_O parameters to make your prompt more readable and easier to manage.
  • Provide images for all placeholders in your prompt to avoid the use of default black images, which may not align with your creative intent.

Adv Image Selector by Prompt -- HooToo Common Errors and Solutions:

Placeholder not found in prompt

  • Explanation: This error occurs when a placeholder in the prompt does not match any of the provided image names or identifiers.
  • Solution: Ensure that all placeholders in the prompt correspond to either a default identifier (A to O) or a custom name provided in the name_A to name_O parameters.

Image not provided for placeholder

  • Explanation: This error happens when a placeholder in the prompt does not have an associated image input.
  • Solution: Provide an image for each placeholder in the prompt using the image_A to image_O parameters to avoid defaulting to a black image.

Adv Image Selector by Prompt -- HooToo Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image Selector by Prompt
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.