Skip to content

v0.29.0 — Style node (LoRA + pos/neg conditioning)

Choose a tag to compare

@Deaththegrim Deaththegrim released this 06 May 22:11
· 84 commits to main since this release

v0.29.0 — Style node (LoRA + positive/negative CONDITIONING)

New node: GrimmRibbity — Style (LoRA + Conditioning)

A visual gallery picker that also applies the entry's stored LoRA stack and encodes prompts. One node replaces a LoraLoader chain plus two CLIPTextEncode nodes for the typical style preset.

  • Inputs: MODEL, CLIP, prompt_id (driven by gallery clicks), optional positive / negative CONDITIONING, optional extra_text, strength_scale (0–2 multiplier across every LoRA), bypass toggle.
  • Outputs: patched MODEL + CLIP, positive CONDITIONING (entry text + triggers + extra encoded, concatted onto input), negative CONDITIONING (entry's stored negative encoded, concatted), final prompt STRING for debugging.
  • LoRAs are loaded once per session into a thread-safe LRU cache (max 4 entries) — re-running the workflow doesn't re-read from disk.

Edit Prompt modal — + Add LoRA section

  • Up to 10 LoRAs per entry, hidden until + Add LoRA pressed.
  • Each row: Model dropdown (populated from ComfyUI/models/loras/**, marks files that have moved as (missing)), Strength slider + number (range −2…2, step 0.05, mirrored to model + clip), Trigger words text, Delete.
  • Trigger words are auto-appended to the prompt before CLIP encoding by the Style node.
  • Modal widened to 540px so the row grid fits cleanly.

Storage

  • New loras list on every entry. Plumbed through upsert, list, history, duplicate, zip-export/import, and revert.
  • _maybe_push_history detects LoRA-only changes — editing just the LoRA stack now records a history snapshot.
  • The plain Library node ignores loras (STRING-only output stays unchanged); only the new Style node consumes them.

Misc

  • New GET /prompt_library/loras route returns installed LoRA filenames for the modal dropdown.
  • SEARCH_ALIASES so the node shows up under style, lora, apply style, etc.
  • 11 new unit tests (178 total green).

Install / upgrade

cd ComfyUI/custom_nodes
git clone https://github.com/Deaththegrim/ComfyUI-PromptLibrary  # first install
# or, in an existing checkout:
git pull

Restart ComfyUI to pick up the new Python module.