XB-BOX - ๐ ๅ่กจๅๅ
Split one list of strings into N separate text wires
- ๆๆฌ1
- ๆๆฌ2
- ๆๆฌ3
- ๆๆฌ4
- ๆๆฌ5
- ๆๆฌ6
- ๆๆฌ7
- ๆๆฌ8
- ๆๆฌ9
- ๆๆฌ10
- ๆๆฌ11
- ๆๆฌ12
- ๆๆฌ13
- ๆๆฌ14
- ๆๆฌ15
- ๆๆฌ16
- ๆๆฌ17
- ๆๆฌ18
- ๆๆฌ19
- ๆๆฌ20
- ๆๆฌ21
- ๆๆฌ22
- ๆๆฌ23
- ๆๆฌ24
- ๆๆฌ25
- ๆๆฌ26
- ๆๆฌ27
- ๆๆฌ28
- ๆๆฌ29
- ๆๆฌ30
- ๆๆฌ31
- ๆๆฌ32
- ๆๆฌ33
- ๆๆฌ34
- ๆๆฌ35
- ๆๆฌ36
- ๆๆฌ37
- ๆๆฌ38
- ๆๆฌ39
- ๆๆฌ40
- ๆๆฌ41
- ๆๆฌ42
- ๆๆฌ43
- ๆๆฌ44
- ๆๆฌ45
- ๆๆฌ46
- ๆๆฌ47
- ๆๆฌ48
- ๆๆฌ49
- ๆๆฌ50
- ๆๆฌ51
- ๆๆฌ52
- ๆๆฌ53
- ๆๆฌ54
- ๆๆฌ55
- ๆๆฌ56
- ๆๆฌ57
- ๆๆฌ58
- ๆๆฌ59
- ๆๆฌ60
- ๆๆฌ61
- ๆๆฌ62
- ๆๆฌ63
- ๆๆฌ64
- ๆๆฌ65
- ๆๆฌ66
- ๆๆฌ67
- ๆๆฌ68
- ๆๆฌ69
- ๆๆฌ70
- ๆๆฌ71
- ๆๆฌ72
- ๆๆฌ73
- ๆๆฌ74
- ๆๆฌ75
- ๆๆฌ76
- ๆๆฌ77
- ๆๆฌ78
- ๆๆฌ79
- ๆๆฌ80
- ๆๆฌ81
- ๆๆฌ82
- ๆๆฌ83
- ๆๆฌ84
- ๆๆฌ85
- ๆๆฌ86
- ๆๆฌ87
- ๆๆฌ88
- ๆๆฌ89
- ๆๆฌ90
- ๆๆฌ91
- ๆๆฌ92
- ๆๆฌ93
- ๆๆฌ94
- ๆๆฌ95
- ๆๆฌ96
- ๆๆฌ97
- ๆๆฌ98
- ๆๆฌ99
Some nodes hand you a list - a batch of file paths, a set of storyboard frames, several prompts at once. But the node on the other end of the wire wants individual strings, one per input. That's the gap XB_ListDispatcher fills: it takes a list of strings, splits it by line, and pushes each line out on its own dedicated output port. You get a fan-out node that turns one messy list wire into clean, individually-addressable text lines.
The reason this exists is ComfyUI's list handling. When a node is list-aware (INPUT_IS_LIST), its input actually receives a list of values even if it looks like a single wire. This node joins everything it receives, splits on newlines, strips each line, drops empties, and then emits line 1 on ๆๆฌ1, line 2 on ๆๆฌ2, and so on. It's plumbing in the truest sense - no pixels touched, no data transformed beyond the split - which is exactly what the plumbing layer of ComfyUI is for (see the node-plumbing essay in the KB).
The two inputs
- ๅ่กจ่พๅ
ฅ (list input) - a
STRINGsocket marked as an input (you must wire something in; it won't take typed text). Any list of strings works. - ่พๅบๆฐ้ (output count) - integer, 1 to 99, default 3. This controls how many of the 99 available output ports actually carry data.
That's the whole control surface. Set output count to 5 and you get ๆๆฌ1 through ๆๆฌ5 populated; the remaining ports exist but output empty strings.
Outputs
Up to 99 STRING outputs named ๆๆฌ1โฆๆๆฌ99 (Text1โฆText99). Practical pattern: feed it a multi-line prompt list from a batch node, set the count, and wire each output into a separate CLIP Text Encode for per-line conditioning. Feed it the output of XB_llamaStoryboardInstruct's output_list and each frame prompt lands on its own wire for batch image generation.
A couple of honest notes
The node treats every newline as a split point and strips whitespace - so blank lines silently vanish, and a line containing only spaces disappears rather than erroring. That's usually what you want, but it means you can't round-trip intentionally-empty lines. Also, empty outputs beyond the source data's length are empty strings, not errors - a downstream node getting "" where it expected text is the thing to watch when you change the input list's length without changing the output count.
Installing it
Part of XB_ToolBox, so the standard install applies:
cd ComfyUI/custom_nodes
git clone https://github.com/WJLUOXIAO/XB_ToolBox.git
or search XB_ToolBox in ComfyUI Manager and restart. No dependencies beyond ComfyUI core.
Should you use it?
If you're already running XB_ToolBox (say, for the llama storyboard nodes), this is a handy no-cost utility for un-batching lists into individual wires. If you're not running the pack, it's a perfectly fine generic list-splitter but not a reason to install a 300-node suite on its own - ComfyUI's own batch/split utilities cover much of the same ground. Where it earns its keep is the 99-output headroom and the clean newline handling in workflows that already live in the XB ecosystem.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| ๅ่กจ่พๅ ฅ | STRING | โ | |
| ่พๅบๆฐ้ | INT | 31โ99 | โ |
Outputs (99)
| Name | Type | Description |
|---|---|---|
| ๆๆฌ1 | STRING | โ |
| ๆๆฌ2 | STRING | โ |
| ๆๆฌ3 | STRING | โ |
| ๆๆฌ4 | STRING | โ |
| ๆๆฌ5 | STRING | โ |
| ๆๆฌ6 | STRING | โ |
| ๆๆฌ7 | STRING | โ |
| ๆๆฌ8 | STRING | โ |
| ๆๆฌ9 | STRING | โ |
| ๆๆฌ10 | STRING | โ |
| ๆๆฌ11 | STRING | โ |
| ๆๆฌ12 | STRING | โ |
| ๆๆฌ13 | STRING | โ |
| ๆๆฌ14 | STRING | โ |
| ๆๆฌ15 | STRING | โ |
| ๆๆฌ16 | STRING | โ |
| ๆๆฌ17 | STRING | โ |
| ๆๆฌ18 | STRING | โ |
| ๆๆฌ19 | STRING | โ |
| ๆๆฌ20 | STRING | โ |
| ๆๆฌ21 | STRING | โ |
| ๆๆฌ22 | STRING | โ |
| ๆๆฌ23 | STRING | โ |
| ๆๆฌ24 | STRING | โ |
| ๆๆฌ25 | STRING | โ |
| ๆๆฌ26 | STRING | โ |
| ๆๆฌ27 | STRING | โ |
| ๆๆฌ28 | STRING | โ |
| ๆๆฌ29 | STRING | โ |
| ๆๆฌ30 | STRING | โ |
| ๆๆฌ31 | STRING | โ |
| ๆๆฌ32 | STRING | โ |
| ๆๆฌ33 | STRING | โ |
| ๆๆฌ34 | STRING | โ |
| ๆๆฌ35 | STRING | โ |
| ๆๆฌ36 | STRING | โ |
| ๆๆฌ37 | STRING | โ |
| ๆๆฌ38 | STRING | โ |
| ๆๆฌ39 | STRING | โ |
| ๆๆฌ40 | STRING | โ |
| ๆๆฌ41 | STRING | โ |
| ๆๆฌ42 | STRING | โ |
| ๆๆฌ43 | STRING | โ |
| ๆๆฌ44 | STRING | โ |
| ๆๆฌ45 | STRING | โ |
| ๆๆฌ46 | STRING | โ |
| ๆๆฌ47 | STRING | โ |
| ๆๆฌ48 | STRING | โ |
| ๆๆฌ49 | STRING | โ |
| ๆๆฌ50 | STRING | โ |
| ๆๆฌ51 | STRING | โ |
| ๆๆฌ52 | STRING | โ |
| ๆๆฌ53 | STRING | โ |
| ๆๆฌ54 | STRING | โ |
| ๆๆฌ55 | STRING | โ |
| ๆๆฌ56 | STRING | โ |
| ๆๆฌ57 | STRING | โ |
| ๆๆฌ58 | STRING | โ |
| ๆๆฌ59 | STRING | โ |
| ๆๆฌ60 | STRING | โ |
| ๆๆฌ61 | STRING | โ |
| ๆๆฌ62 | STRING | โ |
| ๆๆฌ63 | STRING | โ |
| ๆๆฌ64 | STRING | โ |
| ๆๆฌ65 | STRING | โ |
| ๆๆฌ66 | STRING | โ |
| ๆๆฌ67 | STRING | โ |
| ๆๆฌ68 | STRING | โ |
| ๆๆฌ69 | STRING | โ |
| ๆๆฌ70 | STRING | โ |
| ๆๆฌ71 | STRING | โ |
| ๆๆฌ72 | STRING | โ |
| ๆๆฌ73 | STRING | โ |
| ๆๆฌ74 | STRING | โ |
| ๆๆฌ75 | STRING | โ |
| ๆๆฌ76 | STRING | โ |
| ๆๆฌ77 | STRING | โ |
| ๆๆฌ78 | STRING | โ |
| ๆๆฌ79 | STRING | โ |
| ๆๆฌ80 | STRING | โ |
| ๆๆฌ81 | STRING | โ |
| ๆๆฌ82 | STRING | โ |
| ๆๆฌ83 | STRING | โ |
| ๆๆฌ84 | STRING | โ |
| ๆๆฌ85 | STRING | โ |
| ๆๆฌ86 | STRING | โ |
| ๆๆฌ87 | STRING | โ |
| ๆๆฌ88 | STRING | โ |
| ๆๆฌ89 | STRING | โ |
| ๆๆฌ90 | STRING | โ |
| ๆๆฌ91 | STRING | โ |
| ๆๆฌ92 | STRING | โ |
| ๆๆฌ93 | STRING | โ |
| ๆๆฌ94 | STRING | โ |
| ๆๆฌ95 | STRING | โ |
| ๆๆฌ96 | STRING | โ |
| ๆๆฌ97 | STRING | โ |
| ๆๆฌ98 | STRING | โ |
| ๆๆฌ99 | STRING | โ |