Nodes/Enviral Design Node Pack/Enviral Sampler Name
ComfyUI Node

Enviral Sampler Name

KSampler's sampler dropdown, but drivable by a string

By EnviralDesign·Created 4 months ago·Updated 21 days ago· 1
Enviral Sampler Name
    • sampler_name
    sampler_nameeuler

    The KSampler sampler_name dropdown is where most people make their first "why is this a dropdown" face in ComfyUI. You can't wire a string into it, so dynamic sampler selection - "use euler for this pass, dpmpp_2m for that one, and let me choose from a Custom Combo" - means duplicating sampler nodes or editing them by hand.

    Enviral Sampler Name is the tiny adapter that unlocks it. It lists the full set of sampler names as a dropdown, accepts a linked string instead, and outputs the exact native combo type KSampler expects on sampler_name.

    How it works

    Options are pulled live from comfy.samplers.KSampler.SAMPLERS, so the list always matches your ComfyUI install - no hardcoded stale menu. As of the current ComfyUI that's the familiar spread: euler, euler_ancestral, heun, dpm_2, dpmpp_2s_ancestral, dpmpp_2m, dpmpp_sde, lcm, ddim, uni_pc, and the whole _cfg_pp family that newer distilled models like Krea 2 Turbo expect (the community's favorite there is euler_cfg_pp).

    Linked strings are matched exactly first, then case-insensitively, then by unique suffix. Bad input fails validation before the sampler runs, with the closest valid names suggested in the error.

    Input and output

    • sampler_name - dropdown or linked string; defaults to euler.
    • Output sampler_name - native combo, wired into KSampler (or any sampler node that takes the same combo).

    Install

    In the Enviral Design Node Pack: ComfyUI Manager (search "Enviral Design Node Pack") or

    cd ComfyUI/custom_nodes
    git clone https://github.com/EnviralDesign/comfyUI-enviral-design-node-pack
    

    then restart. No extra dependencies.

    When it's actually useful

    Two real cases. First, the "one graph, many recipes" setup: a Custom Combo node lists sampler names as strings, and this node converts the chosen one into a valid KSampler input - same for scheduler via Enviral Scheduler Name. Second, automated A/B testing: drive the sampler from a text-splitter list and compare passes without touching the graph. If you always use the same sampler, skip it. If you've ever wanted to script your sampler choices, this is a five-second install that removes the last hardcoded dropdown.

    CategoryEnviralDesign/selectors

    Inputs (1)

    NameTypeDefaultDescription
    sampler_nameCOMBOeulerSampler name. Accepts a linked string, then outputs the exact native combo type for downstream nodes.

    Outputs (1)

    NameTypeDescription
    sampler_nameeuler,euler_cfg_pp,euler_ancestral,euler_ancestral_cfg_pp,heun,heunpp2,exp_heun_2_x0,exp_heun_2_x0_sde,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_2s_ancestral_cfg_pp,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_cfg_pp,dpmpp_2m_sde,dpmpp_2m_sde_gpu,dpmpp_2m_sde_heun,dpmpp_2m_sde_heun_gpu,dpmpp_3m_sde,dpmpp_3m_sde_gpu,ddpm,lcm,ipndm,ipndm_v,deis,res_multistep,res_multistep_cfg_pp,res_multistep_ancestral,res_multistep_ancestral_cfg_pp,gradient_estimation,gradient_estimation_cfg_pp,er_sde,seeds_2,seeds_3,sa_solver,sa_solver_pece,ddim,uni_pc,uni_pc_bh2Native-compatible sampler name combo.