Extensions/ComfyUI-AnimaPromptFormatter
ComfyUI Extension

ComfyUI-AnimaPromptFormatter

A ComfyUI custom node for formatting Anima prompts.

By 1lch2·Created 6 months ago·Updated 3 months ago· 6
1lch2/ComfyUI-AnimaPromptFormatter
Nodes1
On cloudLocal install
Categoryprompt/formatter
Stars6
Updated3 months ago
Readme

ComfyUI-AnimaPromptFormatter

中文版 | English

A ComfyUI custom node for formatting Anima prompts.

Unlike SDXL models like IllustrousXL or NoobAI XL, Anima is sensitive to whitespaces, commas and line breaks. I create this custom node so I can keep my prompting habits on NoobAI models.

Formatting Rules

  1. Removes all line breaks (\n, \r)
  2. Ensures exactly one space after each comma
  3. Removes spaces before commas
  4. Filters empty tags from consecutive commas

Example

Input:

tag1,tag2,  tag3
,tag4,,tag5

Output:

tag1, tag2, tag3, tag4, tag5

Usage

It's just a string input node, link the output to CLIPTextEncode node and it works.