PromptList w/ Template:
The PromptListWithTemplates node in ComfyUI is designed to facilitate the creation and management of prompt lists, offering a streamlined way to save, load, and delete these lists as templates. This node is particularly beneficial for AI artists who frequently work with multiple prompts and need an efficient method to organize and reuse them. By leveraging an associated JavaScript file, users can interact with prompt templates seamlessly, enhancing their workflow. The node's primary goal is to provide a user-friendly interface for managing prompt lists, allowing for easy storage and retrieval of prompts in JSON format. This capability is crucial for maintaining consistency and efficiency in creative projects, as it enables users to quickly access and modify their prompt lists without the need for repetitive manual input.
PromptList w/ Template Input Parameters:
prompt_1
This parameter allows you to input the first prompt in your list. It accepts a string value, which can be multiline, providing flexibility in the content you wish to include. The default value is an empty string, and there are no specific minimum or maximum length restrictions, allowing you to tailor the prompt to your needs.
prompt_2
Similar to prompt_1, this parameter is for the second prompt in your list. It also accepts a multiline string, with a default value of an empty string. This parameter helps in organizing your prompts sequentially, ensuring clarity and order in your prompt list.
prompt_3
This parameter is used for the third prompt in your list. It functions identically to prompt_1 and prompt_2, accepting a multiline string with a default value of an empty string. This allows for the inclusion of additional prompts as needed.
prompt_4
The fourth prompt in your list can be entered here. Like the previous prompt parameters, it accepts a multiline string and defaults to an empty string. This parameter is useful for expanding your prompt list further.
prompt_5
This parameter is designated for the fifth prompt in your list. It follows the same format as the other prompt parameters, accepting a multiline string with a default value of an empty string, providing ample space for your creative input.
template_file
This parameter allows you to select a template file from a list of available templates. The options include "None" and any JSON files present in the template directory. This selection determines whether you are loading an existing template or starting fresh.
save_filename
This parameter specifies the filename under which your prompt list will be saved. It accepts a string value, with a default of an empty string and a placeholder suggesting the format "subfolder/template_name.json". This ensures that your prompt lists are saved in an organized manner, facilitating easy retrieval.
optional_prompt_list
This optional parameter allows you to input a list of additional prompts. It is particularly useful if you have a pre-existing list of prompts that you wish to incorporate into your current session, providing flexibility and convenience.
PromptList w/ Template Output Parameters:
prompt_list
This output parameter returns a list of all the prompts that have been compiled, including those entered individually and any additional prompts from the optional_prompt_list. This consolidated list is essential for further processing or use in your creative projects.
prompt_strings
This output provides a string representation of the compiled prompt list. It is particularly useful for displaying or logging purposes, allowing you to easily review the prompts you have assembled.
PromptList w/ Template Usage Tips:
- To maximize efficiency, save frequently used prompt lists as templates. This allows you to quickly load them in future sessions without re-entering each prompt manually.
- Use descriptive filenames when saving your prompt lists to ensure easy identification and retrieval later. Consider including keywords or project names in the filename for better organization.
PromptList w/ Template Common Errors and Solutions:
Template not found.
- Explanation: This error occurs when the specified template file does not exist in the template directory.
- Solution: Ensure that the filename is correct and that the template file is present in the designated directory. If necessary, save the template again to confirm its existence.
Invalid filename or prompts.
- Explanation: This error arises when attempting to save a prompt list without specifying a valid filename or when the prompts are missing.
- Solution: Double-check that you have entered a valid filename and that all required prompts are filled in before attempting to save the template.
