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_Atoname_Oparameters 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_Atoname_Oparameters.
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_Atoimage_Oparameters to avoid defaulting to a black image.
