Tiled Attention Couple (Shuffle)
Swap which character lands on which side between batch runs
- shuffle
This is the smallest node in the pack, and it does exactly one thing: turn a seed into a TILED_SHUFFLE value that the Tiled Attention Couple (Config) node can use to shuffle your tile prompts. It was added in v1.3 as an optional extra, and it's the answer to a specific annoyance.
You've got your two-girls workflow dialed in. Nanoha on the left, Fate on the right, red dress and blue dress, no bleeding. Now you want a batch of variations - but if you just randomize seeds, Nanoha and Fate stay glued to the same sides forever, because their prompts are hardcoded to their tiles. The Shuffle node breaks that: wire it into the Config node's optional shuffle input, and each seed reassigns which character gets which tile.
How it works
The node's only input is a seed (an integer, with control_after_generate so it can randomize after every run - set it to "randomize" and let it roll). It passes the seed through unchanged as a TILED_SHUFFLE.
Downstream, the Config node uses that seed to shuffle the tile prompts - and it shuffles the positive tiles and the negative tiles independently, so your per-tile negatives follow their prompts rather than ending up mismatched. What doesn't shuffle is the common prompt, which stays fixed for every tile. That's the right call: the composition ("2girls, side-by-side") should hold while the characters trade places.
So the workflow is:
- Tiled Attention Couple (Shuffle) →
shuffle→ Tiled Attention Couple (Config)shuffle. - Config → main node as usual.
- Batch away. Each run, the character assigned to each position changes with the seed.
What to watch for
- It shuffles positions, not content. If your third tile is intentionally different from your first two, a shuffle will swap it into another spot - that's the feature, but it's worth remembering mid-batch.
- The seed here is independent of the KSampler seed. They're separate knobs: one controls overall noise, the other controls tile assignment. You can hold the KSampler seed fixed and vary just the shuffle seed to see pure position variation.
Installing it
Same pack as the rest of the TiledAttentionCouple nodes, so it's one install:
cd ComfyUI/custom_nodes
git clone https://github.com/Deathspike/ComfyUI-TiledAttentionCouple
Restart ComfyUI (or use ComfyUI Manager and search "Tiled Attention Couple"). No dependencies beyond ComfyUI itself, no model downloads.
Honestly, if you only ever generate single images, you can skip this node entirely - it adds nothing unless you're batching for variety. But if you've ever stared at eight generations that are all "same character left, same character right, different background," this is the two-minute fix.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 0–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| shuffle | TILED_SHUFFLE | — |