ComfyUI Extension: ComfyUI-PromptUtilities

Authored by nkchocoai

Created

Updated

8 stars

Nodes: Format String, Join String List, Load Preset, Load Preset (Advanced), Const String, Const String (multi line). Add useful nodes related to prompt.

README

ComfyUI-PromptUtilities

PromptUtilities Preview
日本語版READMEはこちら

  • Custom node for ComfyUI.
  • Add useful nodes related to prompt.

Installation

cd <ComfyUI directory>/custom_nodes
git clone https://github.com/nkchocoai/ComfyUI-PromptUtilities.git

Nodes

Join String List (Experimental)

  • Outputs string which are the input argN strings concatenated with separator.
  • There may be some bugs as we have not been able to check the operation very well.

Example Join String List

Format String (Experimental)

  • Output string containing the input argN embedded in a prompt.
  • In the prompt, [N] is replaced by the value of argN.
  • There may be some bugs as we have not been able to check the operation very well.

Example Format String

Load Preset

  • Outputs the prompt for the selected preset.
  • The presets are listed in a CSV file located in the presets directory.
  • Easy Prompt Selector yml file is also partially supported.

Example Load Preset

Load Preset (Advanced)

  • Outputs the following values for the selected preset.
    • Positive prompt
    • Negative prompt
    • LoRA and its intensity
    • LoRA Stack (for Efficiency Nodes)
  • The presets are listed in a JSON file located in the advanced_presets directory.

Example Load Preset Advanced 01 Example Load Preset Advanced 02

Random Preset / Random Preset (Advanced) (Experimental)

  • Outputs preset values randomly selected from within the selected file.
  • There may be some bugs as we have not been able to check the operation very well.

Const String

  • Outputs the input string.

Const String(multi line)

  • Outputs the input string.
  • You can input the string in multiple lines.

Prompt Weight

  • Outputs a weighted string for each prompt. Example Prompt Weight

Round Prompt Weight

  • Round prompt weights.

Replace or Insert Tag

  • Replace (mode=replace) or append (mode=insert) the value to the tag matching the pattern. Example Replace or Insert Tag

Misc

  • Renaming config.ini.example to config.ini will output Wildcard format text files from the presets placed in the presets directory to the directory specified by output_csv_presets_as_wildcards.

Recommended extensions