Nodes/ComfyUI FRED Nodes v2/πŸ‘‘ FRED Multi Linear Slider
ComfyUI Node

πŸ‘‘ FRED Multi Linear Slider

One master slider that drives five parameters at once

By PoukpalaovaΒ·Created about a year agoΒ·Updated 7 months agoΒ· 3
πŸ‘‘ FRED Multi Linear Slider
    • value1_float
    • value1_int
    • value2_float
    • value2_int
    • value3_float
    • value3_int
    • value4_float
    • value4_int
    • value5_float
    • value5_int
    β—„master_slider50.0β–Ί
    β—„Boundary_1_MIN0.0β–Ί
    β—„Boundary_1_MAX1.0β–Ί
    β—„Boundary_2_MIN0.0β–Ί
    β—„Boundary_2_MAX1.0β–Ί
    β—„Boundary_3_MIN0.0β–Ί
    β—„Boundary_3_MAX1.0β–Ί
    β—„Boundary_4_MIN0.0β–Ί
    β—„Boundary_4_MAX1.0β–Ί
    β—„Boundary_5_MIN0.0β–Ί
    β—„Boundary_5_MAX1.0β–Ί

    Sometimes you want one knob to turn five things at once. FRED_Multi_Linear_Slider maps a single master 0–100 slider onto five output values, each with its own min/max boundaries. Drag the master and all five values move together, each interpolated within its own range. It's the "master intensity" control you've probably wanted a dozen times and never had a clean way to build.

    How it works

    The master_slider (0–100, default 50) is the driver. For each of the five channels you define a range with Boundary_N_MIN and Boundary_N_MAX - the output when the master is at 0 and at 100 respectively. At master 50, every channel sits halfway between its own min and max. The mapping is linear per channel, so the math is trivial: min + (max - min) * master / 100.

    Each channel emits two outputs:

    • value1_float … value5_float - the exact interpolated FLOAT.
    • value1_int … value5_int - the same value rounded to an INT, for parameters that need whole numbers (steps, width, height, a count).

    So with boundaries set to denoise 0.2–0.8, steps 12–40, CFG 1–8, seed-range... you get one slider that does a coherent "intensity" sweep across several sampling parameters in lockstep.

    Where you'd actually use it

    • Batch style/strength comparisons. Set up a graph where the master slider controls denoise, CFG, and a LoRA weight together, then sweep it across runs to see the combined effect. One parameter to vary beats juggling three.
    • A "vibe" control in a shared workflow. Non-technical users don't want to touch five samplers - give them one slider labeled "how far do you want to push it" that internally drives several values.
    • Coherent resizing. Map width and height boundaries to the same master and you get a single "resolution" slider that scales both, with the INT outputs feeding a resize node.

    The boundary inputs are FLOATs ranging Β±999999, which covers absurd cases but realistically you'll use small ranges. Outputs are linear-only - no curves, no per-channel easing. If you need a nonlinear response (e.g., CFG that barely moves until 80% master), this isn't that.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/Poukpalaova/ComfyUI-FRED-Nodes_v2.git
    

    Restart, or "ComfyUI FRED Nodes v2" in ComfyUI Manager. Pure math, no extra dependencies.

    Gotchas

    Nothing clever hides here, which is the charm. The one thing to keep straight: boundaries are per-channel absolute min/max, not "this channel responds more" - if you want one parameter to respond more slowly, you'd chain two of these or accept the linear behavior. And because master 50 maps to the midpoint of each range, a default master of 50 is not "off" - it's the middle. Set boundaries to your "off" values at that point, or start with the master at 0.

    CategoryπŸ‘‘FRED/utils

    Inputs (11)

    NameTypeDefaultDescription
    master_sliderFLOAT50.00–100Master slider (0–100).
    Boundary_1_MINFLOAT0.0-999999–999999β€”
    Boundary_1_MAXFLOAT1.0-999999–999999β€”
    Boundary_2_MINFLOAT0.0-999999–999999β€”
    Boundary_2_MAXFLOAT1.0-999999–999999β€”
    Boundary_3_MINFLOAT0.0-999999–999999β€”
    Boundary_3_MAXFLOAT1.0-999999–999999β€”
    Boundary_4_MINFLOAT0.0-999999–999999β€”
    Boundary_4_MAXFLOAT1.0-999999–999999β€”
    Boundary_5_MINFLOAT0.0-999999–999999β€”
    Boundary_5_MAXFLOAT1.0-999999–999999β€”

    Outputs (10)

    NameTypeDescription
    value1_floatFLOATβ€”
    value1_intINTβ€”
    value2_floatFLOATβ€”
    value2_intINTβ€”
    value3_floatFLOATβ€”
    value3_intINTβ€”
    value4_floatFLOATβ€”
    value4_intINTβ€”
    value5_floatFLOATβ€”
    value5_intINTβ€”