Nodes/Comfyroll Studio/πŸ“‰ CR XY List
ComfyUI Node Runs on cloud

πŸ“‰ CR XY List

Pull hand-typed X/Y sweep values by loop position

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
πŸ“‰ CR XY List
    • X
    • Y
    • x_annotation
    • y_annotation
    • trigger
    • show_help
    β—„index0β–Ί
    β—„list1xβ–Ί
    β—„x_prependβ–Ί
    β—„x_appendβ–Ί
    β—„x_annotation_prependβ–Ί
    β—„list2yβ–Ί
    β—„y_prependβ–Ί
    β—„y_appendβ–Ί
    β—„y_annotation_prependβ–Ί

    Not every sweep axis is a clean number range you can compute. Maybe your X-axis is sampler names - euler, dpmpp_2m, uni_pc - or a handful of CFG values you picked by hand because the neat 1-through-10 ramp doesn't actually show anything interesting. CR XY List is Comfyroll's answer for that case: you type your own values into two plain text boxes, one line each, and this node hands back the line at your current position for each axis.

    How it works

    list1 and list2 are just multiline text fields - one value per line. Feed index, the same flat loop counter used everywhere in this node family, and the node reads out the line at that position from each list: line index of list1 becomes your X value, line index of list2 becomes your Y value. It's the same idea as this pack's text cycler nodes, applied to two lists at once instead of one.

    Where this differs from its neighbors: CR XY Interpolate computes numbers from a start value and step, and only ever gives you a clean ramp. CR XY List gives you exactly what you typed, in order, whatever that happens to be - numbers, names, whatever text you want. And unlike CR XY Product, which expands two lists into the full cross-product for ComfyUI's native list execution, this one still expects an external loop counter driving it one step at a time.

    The inputs and outputs that matter

    • list1 / list2 - your raw X and Y value lists, one entry per line.
    • index - which line to pull from each list this run.
    • x_prepend / x_append and y_prepend / y_append - text wrapped around the raw line before it becomes the output value. Handy for turning a bare "7.5" into "cfg=7.5" if a downstream node needs it formatted a specific way.
    • x_annotation_prepend / y_annotation_prepend - a separate prefix that only touches the label text, not the value itself - this is what shows up on the finished comparison grid's axis, independent of whatever prepend/append you applied to the actual value.

    Outputs: X / Y (STRING) - the picked-and-formatted value for this step. x_annotation / y_annotation (STRING) - the label text, straight into CR XY From Folder's axis fields. Plus trigger (BOOLEAN) and show_help.

    How to install it

    ComfyUI Manager - search "Comfyroll Studio," install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git
    

    then restart. No models, no external dependencies beyond what the pack already needs to load.

    Common issues

    Index runs past the end of a list. If list1 has 5 lines and your loop's index climbs to 7, you've asked for a line that doesn't exist. Keep the loop range matched to however many lines you actually typed in each box.

    You need computed numbers, not typed ones. If your axis really is a clean start-plus-step progression, CR XY List is the wrong tool for that - you'll be hand-typing a ramp you could get for free from CR XY Interpolate instead.

    Values and labels drift apart. The prepend/append on the value and the prepend on the annotation are separate settings. It's easy to format the value one way and forget the annotation still reads the bare number - worth double-checking both before you run a long sweep.

    Comfyroll fails to load at startup. The traceback people actually hit is Comfyroll Studio: Failed to load ... nodes followed by a NameError for a specific class - that's a partial install (an incomplete git clone or CivitAI zip), not a dependency clash. Reinstall clean through Manager rather than debugging the trace itself.

    Category🧩 Comfyroll Studio/✨ Essential/πŸ“‰ XY Grid

    Inputs (9)

    NameTypeDefaultDescription
    indexINT00–9999β€”
    list1STRINGxβ€”
    x_prependSTRINGβ€”
    x_appendSTRINGβ€”
    x_annotation_prependSTRINGβ€”
    list2STRINGyβ€”
    y_prependSTRINGβ€”
    y_appendSTRINGβ€”
    y_annotation_prependSTRINGβ€”

    Outputs (6)

    NameTypeDescription
    XSTRINGβ€”
    YSTRINGβ€”
    x_annotationSTRINGβ€”
    y_annotationSTRINGβ€”
    triggerBOOLEANβ€”
    show_helpSTRINGβ€”