adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
1.96k stars 253 forks source link

Variables not support `,` Comma , `(` parenthesis #779

Open bluelovers opened 1 month ago

bluelovers commented 1 month ago
Variables output
(who=young woman\,) young woman\ wearing xxxx
(who=young woman,) young woman wearing xxxx
(who=(young woman)) X
(who=\(young woman\)) X

lazy-test:
  # Prompt only a ballerina costume
  prompt-costume:
    - >-
      ${who:ballerina} wearing xxxx
  # Prompt ballerina costume with girl and location
  prompt-full:
    - >-
      __lazy-test/prompt-costume(who=\(__lazy-test/beauty-adj__ ballerina\) young woman,)__,
      set in yyy {, at night|, at sunset|}
  beauty-adj:
    - sexy
    - angelic
    - attractive
    - bonnie
    - desirable
    - esthetic
    - gorgeous
    - lovely
    - supermodel
    - vivacious