sd-dynamic-prompts
sd-dynamic-prompts copied to clipboard
Update evaluation of variants for more flexibility with nested wildcards
Discussed in https://github.com/adieyal/sd-dynamic-prompts/discussions/375
Originally posted by Mossbraker April 5, 2023
I'm not actually sure if the old nesting combinations worked like this because when I started using this extension the {2$$__wildcard__}
functionality wasn't working temporarily due to the changes that were being implemented, but is there a way to do something like
{2$$(__person__:__number__)}
and have it choose one value from each of person.txt and number.txt twice while guaranteeing no duplicates? E.g.:
(person1:number3), (person2:number4)
Or what about if I want to have it choose one value from each of person.txt and number.txt twice while guaranteeing no duplicates from person.txt are used but allowing duplicates from number.txt to be used? Potentially allowing, for example:
(person1:number3), (person2:number3)
Currently, the stated template, i.e.:
{2$$(__person__:__number__)}
only returns a single combination of values from person.txt and number.txt. E.g.:
(person1:number3)
Also, is there a way to do this:
{4-5$$(__person__|__number__)}
and have it choose four or five values, any of which could be from person.txt or number.txt? Currently it only returns two values.