Added nested wildcards.
For example using Prompt: `__0_wildcard_2__` from
wildcard.txt
```
line 1
line 2: __0_wildcard_3__
line 3
```
Will have `line 2: line 3` as a prompt result.
Final update for now.
So new features added the past couple of days:
- negative and hires prompt support.
- line locking support added. ( `__1_wildcard_12__` locks to 12th line of wildcard.txt )
- Made the script a bit easier to read? (It's still a bit of a mess, and there are plenty of efficiency improvements to be had, but it works and is pretty robust as it is now.)
Basically, it's working as I originally wanted it to now. So probably done with it.
Negative and Hires prompts functioning properly as well.
Some changes/fixes.
Note: I can't seem to fix the infotext of hires prompt.
It does apply the correct prompt for image generation, but in a batch all images have the hires prompt of the first image in their infotext.
Added negative prompt wildcards.
Pretty much done with this extension for now.
Only known bug:
If you use lora's inside wildcards, it doesn't work when using "Batch Size".
It still works fine with "Batch Count" however.
This has to do with automatic1111/forge handling prompts outside of the extension. I suspect when you use "Batch Size", the prompt lora's are loaded once for all iterations. Whereas with "Batch Count" it reloads the lora's newly for each iteration.
# TLDR: Don't use "Batch Size", or don't use lora's inside of wildcards.
Added functionality to lock the wildcard to a specific line between 1 and 99
For example:
normal wildcard (wildcard.txt) getting random line number: __1_wildcard__
locked wildcard getting line number between 1-99, in example the fourth line in the wildcard: __1_wildcard_4__
This allows you to lock certain wildcards to a specific line for testing/batching.
Massive update.
Added iterative wildcards
Fixed some issues
Also added the ability to use wildcards the old way.
(Although I recommend using tiered wildcards.)
Also added the settings into txt2img menu.