You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Qunatifying wildcard: $$count#wildcards repeats wildcards many as count
{2$$, $$5#__wildcards__} turns into {2$$, $$__wildcards__|__wildcards__|__wildcards__|__wildcards__|__wildcards__}
In my initial testing, I had a simple file with colours in, and I wanted to randomly select 1-4 colors, so I did this:
{1-4$$4#__colour__}
Light Grey Amber
This is the same as if I did this:
{1-4$$__color__|__color__|__color__|__color__}
Blue White Red
However, if I want to put commas between them...
This works:
{1-4$$__color__,|__color__,|__color__,|__color__,}
Yellow, Purple, Tan
But this behaves a little unexpectedly:
{1-4$$4#__color__,}
Green Grey Magenta, Yellow
Dark Purple, Light Grey Dark Grey Rainbow
Dark Grey, Violet Navy Blue
Dark Green Magenta
As explained in the syntax description, $$count#wildcards is syntax that affects only a single wildcard.
The current wildcard system is borrowed from an existing wildcard system for convenience. While it works fine for simple wildcards, its intuitiveness significantly diminishes as more complex syntax is introduced.
TBH, since it is not well-formed syntax, it's hard to know where grammatical conflicts might occur.
So, I believe it is appropriate to devise a separate prompt description language for any syntactic elements other than __xxx__ or {||}.
Hi
I'm trying to use the quantifying wildcard, as described here:
https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md#syntax
In my initial testing, I had a simple file with colours in, and I wanted to randomly select 1-4 colors, so I did this:
This is the same as if I did this:
However, if I want to put commas between them...
This works:
But this behaves a little unexpectedly:
It seems off with multiple quantifiers also:
It's like any constant value in each wildcard is only included once and is not being picked up by the quantifier?
The text was updated successfully, but these errors were encountered: