ComfyUI · Wildcards

One place for every word list your prompts draw from.

35 word lists, ten picker slots and one Manager that rolls any file the way the nodes will. Built and part of Violet nodes 1.10.0, not yet released. The Wildcard Picker V2 and the Edit Command fill a prompt, a pose, an outfit or a single blank in an edit, and the same seed gives the same result.

Slides

Wildcards in seven slides.

Violet nodes for ComfyUI

Wildcards

Find, write, test and use word lists, from the Manager window to a single blank in an edit.

The whole feature in one place: the Manager, the picker, the Edit Command.
The Wildcard Manager: a category list on the left and a grid of wildcard cards with a picture and a line count each.
The Wildcard Manager. Every file is a card with its picture and line count; categories sit on the left.

How a wildcard works

One line per entry.

__violet_edit/poses__
{red|blue|green}
3::a rare line

__name__ pulls a line from another file, {a|b} picks one of two, and 3:: makes a line three times as likely. The same seed gives the same result.

Plain text files; any other tool can read them.
A wildcard open in the Manager: its picture, category, the Edit Command blank to send it to, a Roll test with five results and the file's lines with a tick box each.
Open a file to roll it five or twelve times, tick lines, and send it where it is needed.

Edit Command

Only the blank changes.

pose = __violet_edit/poses__
color = red | blue
item = __shirts__

Each line of the wildcards box fills one blank: item, colour, material, replacement, background, lighting, scene, pose, expression or outfit. The rest of the sentence stays as you wrote it.

The Manager has a Send to edit node button for the same thing.

Make your own

Four ways to a new file.

  • Words: type or paste lines.
  • Combine: merge files, pair them, or build a tag line.
  • Language model: describe the topic and how many lines; your own text model writes them.
  • Pictures: drop pictures and a vision model describes each as a line.

Saving never changes a library file. Your version goes in its own folder and is read first.

Every person in the word lists and in generated lines is an adult.

In a workflow

Pick, review, run.

Wildcard Picker V2→Edit Command→Prompt Review→Sampler

Ten slots as cards: pose, outfit, scene, lighting, expression and more. Each has Choose, Roll, Random and Clear, and the picks feed the Edit Command blanks directly.

The review node shows the full prompt before it is used.

User guide

From a folder of text files to a filled prompt.

  1. Put wildcard files where ComfyUI can see themPlain .txt files, one entry per line, in the wildcards folder next to models. Sub-folders are fine. To use a library kept somewhere else, add its folder under Options in the Manager once.
  2. Open the ManagerPress Ctrl+Alt+W, use the Extensions menu, the Manage wildcards button on any wildcard node, or the Wildcards tab of the Violet sidebar. A scan of four thousand files takes about two seconds and is kept, so the next open is instant.
  3. Find a fileFiles are sorted into categories (hair, makeup, pose, outfit, lighting, camera, colour and more). Files that differ only by age, body type or gender are grouped into one card. Search matches names and lines.
  4. Try itOpen a card and press Roll 5 or Roll 12. The result uses the same engine as the nodes, including {a|b} choices and files pulled in with __name__.
  5. Add a Wildcard Picker V2 to your workflowEach slot is a card. Choose opens the browser, Roll keeps a random line, a line number of 0 picks from the seed. The text output goes into any prompt box.
  6. Fill one blank of an editConnect the picker's edit_wildcards output to the Edit Command, or write lines such as pose = __violet_edit/poses__ in its wildcards box. The sentence of the command stays as it is.
  7. Write your ownNew wildcard takes words, a combination of files, a list written by your language model, or pictures described by a vision model. Your files are saved apart from the library, and moving one to the trash brings the original back.

Large word libraries are not part of any release. Point the Manager at the folder you have.

In the Violet nodes

The wildcard parts, and where they live.

Wildcard Manager

window · Ctrl+Alt+W

Scan, categories with pictures, a detail drawer with a roll test and an editor, the four ways to make a new file, and the folder options.

Wildcard Picker V2

node · violet-toolbox

Ten card slots with a picture, a line stepper, Choose, Roll, Random and Clear. Outputs the joined text, the Edit Command lines, and each pick on its own.

Wildcard Picker

node · violet-toolbox

The original: up to four files, a line number each, a separator and text before and after. Same seed, same picks.

Edit Command wildcards

node · comfyviolet-solar-violet

A box with one line per blank. Each line fills one part of the sentence; the rest is unchanged.

Run this node

button · text nodes

Every Violet node that asks a language model for text can run on its own, with only what it needs. A fixed seed returns the same text; change the seed for a new one.

Violet Wildcards

word lists · 35 files

Clothing by group, colours, materials, backgrounds, lighting, poses, expressions, outfits and the Edit Command word lists (hair, make-up, weather, season, shot, angle, palette and more). One entry per line; all people are adults.

Reference

The syntax, in one table.

WriteResult
__poses__One line from the file poses.
__violet_edit/poses__One line from a file in a folder.
{red|blue}One of the two, chosen by the seed.
3::a rare lineA weighted line: three times as likely as one without a weight.
# noteIgnored: lines starting with # are comments.
pose = __poses__In the Edit Command wildcards box: fills the pose blank.

Get it

Part of Violet nodes 1.10.0.

Built, not yet released.

The Manager and both pickers are in the 322-node Violet pack. As individual packs, the pickers are in violet-toolbox and the Edit Command is in comfyviolet-solar-violet. The word lists are their own small pack, violet-wildcards: copy its violet_edit folder into your wildcards folder and the Manager, the picker and the Edit Command list the files as violet_edit/....

New · from Violet Diffusion

ViolART OS

The operating system for artists. Every creative app we make on one account, one local model engine, and one library of images and LoRAs.

ArtPi6XenoVioletGenFixPortrAIt StudioLoumiNova AICCO Studio
See ViolART OS →