Nodes/comfyui-dynamic-anynode/Any Sampler (All-In-One)
ComfyUI Node

Any Sampler (All-In-One)

One dropdown, every sampler you own

By asagi4·Created 8 months ago·Updated 8 months ago· 1
Any Sampler (All-In-One)
    • sampler
    selection

    The sampler dropdown is the one that outgrew its menu. ComfyUI's stock list is already in the dozens, and then the sampler packs arrived - RES4LYF alone ships 69 selectable solvers, most of them with no stock equivalent at all. Every pack adds its nodes to the menu as separate entries, each with its own widget set, and they all do the same job: take the model, the sigmas, and the guider, and decide how each denoising step gets computed. That's the hole Any Sampler (All-In-One) fills. One node, one dropdown, and whatever sampler you pick, the node reshapes itself around it.

    How it works

    Load-time scanning, same as the rest of the pack. The node walks every class ComfyUI has registered and collects the v3-style ones with a SAMPLER output whose class name contains "Sampler" but not "CustomSampler" - the exclusion exists so sampler wrappers and meta-nodes don't pollute the list. Those become the selection options. Choose one and the node re-renders with that sampler's real inputs; on execute it forwards your settings and returns. No sampling math happens here; this is a thin dispatch layer over the actual sampler nodes you have installed.

    The input you set is selection. The output is sampler, type SAMPLER, and it plugs into the sampler input of CustomSamplingAdvanced next to your guider, scheduler, and noise.

    Why you'd reach for it

    Because sampler choice is now architecture-dependent, and the honest guidance keeps moving. On SD 1.5 and SDXL finetunes, DPM++ 2M Karras is still the safe default. On flow-matching models - Flux, Z-Image, Klein, Anima - Karras stops being suboptimal and starts being wrong; the community sweep evidence says Euler-family samplers on conservative schedules, and the tuning action has moved into packs like RES4LYF (res_2m, er_sde, and friends). If you regularly hop between a Pony finetune and an Anima workflow, you're remembering two entirely different sampler vocabularies. This node lets you keep one socket and swap the dropdown when you swap models - no deleting nodes, no re-wiring.

    Install

    Same pack, same caveat: this targets the v3-improvements ComfyUI branch, not stock ComfyUI. On that branch:

    cd ComfyUI/custom_nodes
    git clone https://github.com/asagi4/comfyui-dynamic-anynode
    

    Restart, or use ComfyUI Manager and search "ComfyUI Any Nodes". No pip dependencies, no model downloads, no keys. The samplers you want to use come from whatever packs you've already installed - this node just surfaces them.

    Common issues

    • Only stock samplers in the list. It reflects what you've installed. RES4LYF samplers appear only if RES4LYF is installed; install the pack, refresh, done.
    • A sampler node you know exists isn't listed. It's either a legacy node that hasn't migrated to ComfyUI's v3 node API (this pack only sees v3 nodes), or it was excluded by name because it's a wrapper, not a sampler.
    • The node is missing from the menu entirely. You're on the stable branch. The v3-improvements requirement is the pack's known hard dependency and the README says so in its first line.
    Categorysampling/custom_sampler

    Inputs (1)

    NameTypeDefaultDescription
    selectionCOMBO17 options: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object], +11

    Outputs (1)

    NameTypeDescription
    samplerSAMPLER