ComfyUI Node

Get Sampler

Make the sampler itself part of your profile

By haroonaslam·Created 4 months ago·Updated 7 days ago· 10
Get Sampler
    • sampler_name
    key
    resolved_value
    resolved_config
    resolved_digest

    The sampler is one of those things you set once and mostly forget - until you build a workflow that wants to switch between a fast distilled sampler and a high-quality one per profile. Get Sampler is WorkflowX's node for that: it resolves a sampler name from a Set Sampler node based on the active config, and hands it to your KSampler as a proper sampler_name wire.

    The neat part is what it does not do. It doesn't hold a hardcoded dropdown - it reads the live sampler list from your ComfyUI installation, so a sampler available in your current build shows up as a real choice on the Set side and the Get output is a true typed socket your KSampler accepts.

    How it works

    Same keyed-resolution machinery as the rest of the typed Get family, with one twist that matters: the value type is ComfyUI's own sampler enum, pulled from comfy.samplers.KSampler.SAMPLERS at startup. So Set Sampler presents the actual list your ComfyUI knows (euler, dpmpp_2m, dpmpp_2m_sde, the cfg_pp variants, and so on), and Get Sampler returns one of them.

    The routing is identical to Get Int or Get Float. Set Sampler publishes a sampler name under a key inside a ComfyUI group; a Config SelectorX marks groups Active/Bypass/Mute/Ignore per config; Get Sampler resolves to the Set Sampler in an Active group, last canvas id winning if several match. The resolved_value, resolved_config, and resolved_digest widgets are UI-managed provenance - leave them alone, they're the cache that makes profile switching work without a refresh.

    Inputs and outputs

    • key (STRING) - exact match against the Set Sampler key.
    • resolved_value / resolved_config / resolved_digest (STRING) - internal, frontend-managed.
    • Output: sampler_name - the live sampler dropdown type ComfyUI's KSampler accepts. Wire straight into sampler_name.

    Because it's a real enum socket, this is one of the more satisfying Gets in the pack: there's no string-vs-enum mismatch to debug at the consumer.

    Install

    Part of WorkflowX-Configurator. ComfyUI Manager → search WorkflowX Configurator, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/haroonaslam/WorkflowX-Configurator
    

    Restart, hard-refresh. No extra Python dependencies; the sampler list comes from ComfyUI itself.

    Common issues

    • "No Sampler value found for key 'x'." - no matching Set Sampler in an Active group. Check the key and the group's mode in the selected profile.
    • A sampler you know exists isn't in the list. The list is read from your ComfyUI at startup. Restart after updating ComfyUI so the Get/Set nodes pick up new samplers.
    • Wrong sampler after switching. Re-queue after changing config; resolution is at queue time, and the digest cache means no refresh is needed - just a re-run.

    Keep it honest: this pack is young and lightly adopted. If you only ever use one sampler, skip this node. It shines when sampler choice is a real dimension of your profile matrix - say, a distilled fast path vs. a full-quality path in one graph.

    CategoryWorkflowX/Get Set Go

    Inputs (4)

    NameTypeDefaultDescription
    keySTRING
    resolved_valueSTRING
    resolved_configSTRING
    resolved_digestSTRING

    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_bh2