Nodes/Comfyroll Studio/πŸ› οΈ CR Intertwine Lists
ComfyUI Node Runs on cloud

πŸ› οΈ CR Intertwine Lists

Zip two lists together into one alternating batch

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,291
πŸ› οΈ CR Intertwine Lists
    • STRING
    • show_help
    β—„list1β–Ί
    β—„list2β–Ί

    Say you've got two lists you built separately - a set of prompts and a set of seeds, or two batches of filenames - and you don't want them run one after the other, you want them interleaved: first item from list A, then first item from list B, then second from A, second from B, and so on. That's the entire job of CR Intertwine Lists. It's a small, single-purpose node tucked into Comfyroll's List Utils corner, and it does exactly one thing.

    How it works

    Both list1 and list2 are multiline text boxes - one entry per line. The node walks down both boxes in lockstep and weaves them into a single flat list: line 1 of list1, line 1 of list2, line 2 of list1, line 2 of list2… The result comes out as one merged list rather than two separate ones, which matters because of how ComfyUI treats list outputs: anything downstream that's fed a list runs once per item in it. So wiring this into, say, a batch save or a prompt-driven generation loop means your graph fires once for every woven-together entry, in the order they were interleaved.

    This is the kind of node that only makes sense once you've hit the problem it solves - usually when you're building an XY-style comparison (alternating two variable sets) or trying to combine two independently-built lists without losing the pairing between them.

    Inputs and outputs that matter

    • list1 and list2 - multiline text, one item per line. These are the only two things you set.
    • Output is a single STRING list (the woven result, is_list: true) plus show_help, a link back to Comfyroll's own docs.

    There's no length-matching parameter exposed, so if your two lists aren't the same length, test on a short pair first rather than assuming - the schema doesn't say what happens with a mismatch, and it's cheap to check with three lines each before you build a fifty-item version.

    How to install it

    Comfyroll Studio (Suzie1, co-authored with RockOfFire) installs like any other node pack:

    • ComfyUI Manager: search "Comfyroll Studio", install, restart.
    • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.
    • Or grab it from the pack's CivitAI page if you prefer that route.

    Nothing to download beyond the pack itself - this is pure text/list plumbing, no models involved.

    Common issues

    If the node doesn't show up in the search menu at all after installing, that's usually not this node specifically. Comfyroll is one big pack registering close to 200 nodes from a shared set of files, and a single failed import (a missing dependency somewhere else in the pack) can take the whole registration down with a console error that names a completely unrelated node class. Redo the git clone cleanly rather than chasing pip errors line by line - an incomplete download is a far more common cause than a real dependency conflict.

    Otherwise the only real gotcha is the interleaving order itself - if your output looks offset or "backwards," double-check which list you meant as list1 versus list2, since the weave always starts with list1's first line, and confirm both boxes actually have one item per line rather than everything crammed onto a single line.

    Category🧩 Comfyroll Studio/✨ Essential/πŸ“œ List/πŸ› οΈ Utils

    Inputs (2)

    NameTypeDefaultDescription
    list1STRINGβ€”
    list2STRINGβ€”

    Outputs (2)

    NameTypeDescription
    STRINGSTRINGβ€”
    show_helpSTRINGβ€”