ljleb / prompt-fusion-extension

auto1111 webui extension for all sorts of prompt interpolations!
MIT License
259 stars 16 forks source link

Add alternative delimeter for X/Y plot script #52

Closed freezerain closed 1 year ago

freezerain commented 1 year ago

Problem: when using X/Y plot script comas parsed as plot delimeter

Suggestion: -make an option to use alternative delimeter, for examle "||" (can conflict with infinite tables), "//", "..." or anythin that user specifies in settings -rework prompt_parser.py to hijack promp before X/Y script

Example of "[girl:dragon:0.1,0.5], " Prompt S/R

tmpxzpgmdhs

freezerain commented 1 year ago

it shoud be [girl : dragon] but github decided to insert emoji in my message, while it is cute yet confusing

ljleb commented 1 year ago

X/Y/Z values are CSV entries. To put comas, you can put an entry in quotes like this:

"[ girl : dragon : 0.1 , 0.5 ]"," "

Note: make sure there is no extraneous whitespace around double quotes " and commas ,, otherwise the CSV field parsing may behave differently.

freezerain commented 1 year ago

oh thank you