π Clothes
Roll the wardrobe β this clothes node is always ready for swimsuit season
- STRING
Meet the node
π Clothes is the "what are they wearing" fragment in Prompt Factory. It picks an outfit type - casual, swimsuit, or uniform - and rolls accessories (hat, scarf, watch, bracelet, necklace) on top, then hands you a tag string. Same config-driven machinery as the rest of the pack: pick a mode per attribute (random, a concrete value, or none), and a seed input makes the roll deterministic.
What you get
The output is one STRING of comma-joined tags - something like t-shirt, hat. accessories doesn't land every time: in the pack's config it rolls at roughly 0.7 probability, so you'll see extras most runs but not always. Set type to lock an outfit for a batch, leave it random to explore, and if the output feels busy, pin accessories to none.
The coherence caveat
This is where the pack's lack of cross-node checks shows up. swimsuit here doesn't consult the Environment node, so a swimsuit in a snowy mountain scene is completely possible. Fun fact: the repo ships a rules.json that sketches exactly this fix - a swimsuit forces a beach/pool location and drops snow - but it isn't wired into the running code in the version I checked. So coherence is on you. For a random generator I'd argue the garbage combos are half the point; keep the good ones, reroll the rest.
Why you'd use it
Batch variation, mostly. Generate twenty outfits, keep the one that works, then pin type and vary accessories to build a little wardrobe. On the anime tag lineage (Pony/Illustrious/NoobAI) these tags are exactly the shape the model wants; on sentence-based models, do a quick cleanup pass. Merge the output with the other fragments via MergeStrings before CLIPTextEncode.
Install
Pack-level, and it's a light one: ComfyUI Manager β search "Prompt Factory", or by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/satche/comfyui-prompt-factory
pip install -r requirements.txt
No models, no GPU deps - dpath and numpy are the whole list - then restart. If the clone 404s, Manager or comfy node registry-install comfyui-prompt-factory both work.
Troubleshooting
- Random accessories you don't want: set
accessoriestonone, or pin it to one specific item. - Same few outfits keep coming up: the garment lists are short. Open
custom_nodes/comfyui-prompt-factory/config.jsonand add your own items - extending the config is the intended power move. - Swimsuit keeps fighting the environment: that's the cross-node gap doing its thing. Pick the
locationyourself on the Environment node, or embrace it.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| type | COMBO | random | 5 options: random, casual, swimsuit, uniform, none |
| accessories | COMBO | random | 7 options: random, hat, scarf, watch, bracelet, necklace, +1 |
| seed | INT | 00β18446744073709550000 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | β |