D2-PromptSelector-comfyUI
A utility that allows you to input registered prompts with a single button click.
This is a remake of the sd-d2-prompt-selector extension for StableDiffusion webui A1111, adapted for ComfyUI.
How to Use
Open it by clicking the "PS" button on the left edge of the screen.
Clicking a tag button will input it into the last active text area.
【TIPS】 If you right-click, the PromptSelector dialog will close after inputting the tag.
Clicking a category button will input it using DynamicPrompt syntax.
Click the 🔍 button to search.
Adding Tags
Edit the YAML files in the tags folder at the installation location.
Example: ComfyUI/custom_nodes/d2-promptselector-comfyui/tags
YAML files are just text files, so they can be edited with a notepad app. Personally, I recommend Visual Studio Code.
When adding a YAML file, you need to edit __config__.yml.
If you add pose.yml, it would look like this. The order can be changed as desired.
sort:
- 人
- 人_顔
- 人_髪
- pose
Click the 🔄 button to reflect the edited tags.
Settings
The position of the "PS" button can be specified in Settings.
- ShowButton Vertical Margin(px)
- Y-coordinate from the edge of the screen
- ShowButton Horizontal Margin(px)
- X-coordinate from the edge of the screen
- ShowButton Location
- Reference position from the edge of the screen