Nodes/MachinePainting Nodes/πŸ‘Ύ Mega Slider Master Value
ComfyUI Node

πŸ‘Ύ Mega Slider Master Value

One knob to rule a dozen sliders β€” the master settings for Mega Sliders

By machinepaintingΒ·Created 10 months agoΒ·Updated 4 months agoΒ· 9
πŸ‘Ύ Mega Slider Master Value
    • master
    β—„min_value0.0β–Ί
    β—„max_value1.0β–Ί
    β—„step0.01β–Ί

    Every workflow eventually hits the same wall: you've got eight sliders and you want them all to live in the same range - say, 0 to 1 in 0.05 steps - and you don't want to hand-type min/max/step into each one. That's the job of πŸ‘Ύ Mega Slider Master Value. It's the control panel for the Mega Slider family: you set min_value, max_value, and step once, wire the single master output into any Mega Slider X1/X3/X6/X12 node, and every connected slider snaps to those settings live.

    How it works

    The mechanism is unglamorous and exactly right: the node packs its three inputs into a small dict - {"min": ..., "max": ..., "step": ...} - and hands it out over a custom MEGA_SLIDER_MASTER connection. The Mega Slider nodes read that dict, clamp their slider values into the range, and snap to the step. On the frontend, the pack's JS watches the master's widgets, so when you drag min_value from 0 to 0.5, every connected slider's range redraws immediately. No button, no rerun, it just updates.

    Inputs, all required and all FLOAT:

    • min_value (default 0, range βˆ’10000 to 10000)
    • max_value (default 1)
    • step (default 0.01)

    Output: a single master connection. One master can feed multiple Mega Slider nodes at once, and the JS also supports per-slider overrides on the slider side (right-click β†’ Properties β†’ slider_N_min / slider_N_max / slider_N_step) for when one slider in the bank genuinely needs its own range.

    Why you'd reach for it

    This is a workflow-hygiene node, the same family as the boolean and text utilities in this pack - it generates nothing, it just keeps your graph editable. The real payoff shows up when you're tuning a batch: instead of opening each slider's properties to rescale everything because you changed a scale you're driving, you move one widget. And because Mega Slider outputs are plain FLOATs, you can drive anything - CFG, denoise, LoRA strength, sampler noise. One master, one mental model, twelve outputs.

    Installing it

    Part of the MachinePainting Nodes pack (40 nodes). ComfyUI Manager β†’ search "MachinePaintingNodes", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/machinepainting/ComfyUI-MachinePaintingNodes.git
    

    Restart ComfyUI. The pack's real dependencies are opencv-python-headless, numpy<3, and rembg - none of which this utility node touches, so expect it to just work.

    Gotchas worth knowing

    • No master connected = no clamping. Without a master input, a Mega Slider just passes its raw value through at the default βˆ’10000..10000 range with 0.01 step. That's often fine, but if your slider seems to ignore a value you typed, check whether it's snapped to a step from an old master.
    • Step snapping can silently alter your value. That's the point, but it means a master with step: 0.1 will quantize a slider currently sitting at 0.33 to 0.3 the moment it re-renders. Set the step you actually want before dragging.
    • Master values are global across all connected sliders; per-slider overrides exist for a reason. If two sliders fight over one range, you want overrides, not a second master.

    It's a small node with a small job - but if you've ever rebuilt a parameter bank from scratch because "the range is wrong," you already know why this exists.

    CategoryMachinePaintingNodes/Util

    Inputs (3)

    NameTypeDefaultDescription
    min_valueFLOAT0.0-10000–10000β€”
    max_valueFLOAT1.0-10000–10000β€”
    stepFLOAT0.010.001–1000β€”

    Outputs (1)

    NameTypeDescription
    masterMEGA_SLIDER_MASTERβ€”