Nodes/PG Nodes/Sampler Select
ComfyUI Node

Sampler Select

Pick a sampler by name, wire a real sampler object out

By GizmoR13·Created 11 months ago·Updated 11 months ago· 16
Sampler Select
    • sampler
    sampler_name

    Sampler Select is the dropdown that turns a sampler name into a real sampler object. You pick from ComfyUI's full sampler list - euler, euler_ancestral, dpmpp_2m, dpmpp_sde, and the rest of the 40+ entries - and it hands you a SAMPLER output wired to whatever node accepts one, typically an advanced sampler.

    If you only use the basic KSampler, you set the sampler from a widget inside that node and you'll never need this. Where it earns its keep is the "select as a variable" pattern: one dropdown feeding a sampler input, so you can swap samplers in one place without hunting through loader widgets. It's the same idea as the rest of PG Nodes' selector family.

    How it works

    The dropdown is built at import from comfy.samplers.SAMPLER_NAMES (with a fallback to KSampler.SAMPLERS), so the list always matches your installed ComfyUI - new samplers that ship in an update show up after restart. On selection it calls ComfyUI's sampler_object() to build the actual sampler object, and that object travels on the sampler output.

    A quick note for the uninitiated, because sampler choice matters more than most beginners expect. Euler and DPM++ 2M are converging samplers - stable output that stops changing much past a step count. Euler A and DPM++ SDE are ancestral - they inject noise each step, stay creative, and keep changing with more steps. The PG pack's own master workflows lean on a curated handful, but this node gives you the full shelf.

    The input and output

    • sampler_name - dropdown over all installed samplers. That's the one input.
    • Output: sampler (type SAMPLER), the live object.

    Wire it into a sampler node's sampler input. If your graph uses a plain KSampler, remember that node also needs a scheduler input - the pack's Scheduler Select fills that side.

    Install

    Part of the PG Nodes pack:

    ComfyUI Manager → search "PG Nodes" → Install → restart
    

    Manual: git clone https://github.com/GizmoR13/PG-Nodes into ComfyUI/custom_nodes (rename to PG-nodes), restart. Found under PG/Select.

    Common issues

    • A sampler you expect is missing. The list snapshots at import. Restart after a ComfyUI update to see new names.
    • "Sampler does nothing different." At low step counts on some schedulers, euler vs dpmpp barely diverge. That's not the node - that's the combo. Try a converging sampler at 20+ steps or an ancestral one if you want visible variation.
    • Red wire. The SAMPLER output only plugs into inputs typed SAMPLER. If a node wants a plain string of the name instead, use the pack's Sampler Select name combo variant (PgSamplerSelectCombo), which returns the raw string.

    It's a small node with a narrow job, and it does that job without surprises - which, in the ComfyUI ecosystem, is honestly more than most utilities manage.

    CategoryPG/Select

    Inputs (1)

    NameTypeDefaultDescription
    sampler_nameCOMBO44 options: euler, euler_cfg_pp, euler_ancestral, euler_ancestral_cfg_pp, heun, heunpp2, +38

    Outputs (1)

    NameTypeDescription
    samplerSAMPLER