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

πŸ“‰ CR XY Interpolate

Compute a CFG/step ramp for an XY sweep instead of typing every value

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
πŸ“‰ CR XY Interpolate
    • X
    • Y
    • x_annotation
    • y_annotation
    • trigger
    • show_help
    β—„x_columns5β–Ί
    β—„x_start_value0.00β–Ί
    β—„x_step1.00β–Ί
    β—„x_annotation_prependβ–Ί
    β—„y_rows5β–Ί
    β—„y_start_value0.00β–Ί
    β—„y_step1.00β–Ί
    β—„y_annotation_prependβ–Ί
    β—„index0β–Ί
    β—„gradient_profileβ–Ύβ–Ί

    Say you want to sweep CFG from 1.0 up to 10.0 across ten columns, and denoise from 0.3 to 0.8 down the rows. You could type out every one of those values by hand into a text list. Or you could let CR XY Interpolate do the arithmetic: give it a start value and a step size per axis, and it computes the right number for whatever position in the grid you're currently on.

    How it works

    This node is really two jobs fused into one. First it does the same thing CR XY Index does: takes your grid shape (x_columns, y_rows) and your current flat loop position (index), and works out which column and row that lands on. Then, instead of stopping there and handing you back plain integer coordinates, it goes one step further and turns that column/row into an actual usable number: x_start_value + column Γ— x_step for X, y_start_value + row Γ— y_step for Y. gradient_profile picks the curve used to get from start to that computed value - right now the pack only ships one real option here, Lerp (linear interpolation), so in practice this dropdown is a straight ramp, not something you need to fuss over.

    That's the whole pitch: where CR XY List makes you type your own values line by line, this node computes a smooth numeric progression from three numbers. It's the node you reach for when your axis is a clean range - CFG, denoise, steps, guidance scale - not a list of arbitrary things like sampler names.

    The inputs and outputs that matter

    • x_columns / y_rows - your grid's shape. Get these wrong and every value past the first row or column comes out wrong, same trap as CR XY Index.
    • x_start_value / x_step and y_start_value / y_step - where the ramp begins and how much it moves per column/row. CFG 1.0 start, step 1.0, across 10 columns gets you 1 through 10.
    • index - your current position in the loop, same flat counter the rest of this node family uses.
    • x_annotation_prepend / y_annotation_prepend - text stuck in front of the label used later when you build the comparison grid, so the axis reads "CFG: 4.0" instead of a bare "4.0".

    Outputs: X and Y (both FLOAT) - wire these straight into whatever numeric input you're sweeping. x_annotation / y_annotation (STRING) feed the axis labels on CR XY From Folder. trigger (BOOLEAN) and show_help round it out.

    How to install it

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

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

    then restart. No models, no heavy dependencies - this is pure arithmetic.

    Common issues

    Values come out off by a column or row. Same root cause as CR XY Index: x_columns/y_rows have to match your actual grid shape. Leave them at the default 5Γ—5 while sweeping a 10-wide range and the math runs against the wrong dimensions for anything past index 4.

    You wanted specific values, not a ramp. If your sweep isn't an evenly-spaced progression - say, three specific CFG values you picked by hand, not a clean start/step - this is the wrong node. That's exactly what CR XY List is for: type the values in directly instead of computing them.

    Grid doesn't line up once assembled. x_columns/y_rows here need to match max_columns on CR XY From Folder later - the two nodes don't share settings automatically, so a mismatch is an easy way to end up with a lopsided final grid.

    Comfyroll won't load at all. The failure mode people actually hit on Reddit is a partial install: ComfyUI's console shows Comfyroll Studio: Failed to load ... nodes followed by a NameError for some specific node class that never got defined - a sign the clone or CivitAI zip download didn't land completely, not a dependency conflict. The fix is a clean reinstall through Manager rather than chasing the traceback.

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

    Inputs (10)

    NameTypeDefaultDescription
    x_columnsINT50–9999β€”
    x_start_valueFLOAT0.000–9999β€”
    x_stepFLOAT1.000–9999β€”
    x_annotation_prependSTRINGβ€”
    y_rowsINT50–9999β€”
    y_start_valueFLOAT0.000–9999β€”
    y_stepFLOAT1.000–9999β€”
    y_annotation_prependSTRINGβ€”
    indexINT00–9999β€”
    gradient_profileCOMBO1 options: Lerp

    Outputs (6)

    NameTypeDescription
    XFLOATβ€”
    YFLOATβ€”
    x_annotationSTRINGβ€”
    y_annotationSTRINGβ€”
    triggerBOOLEANβ€”
    show_helpSTRINGβ€”