ComfyUI Node

Enviral CLIP Type

Make CLIPLoader's type dropdown follow a string instead of a fixed menu

By EnviralDesign·Created 4 months ago·Updated 22 days ago· 1
Enviral CLIP Type
    • type
    typestable_diffusion

    Here's a ComfyUI annoyance you've probably hit: built-in nodes like Load CLIP have their settings locked to dropdown menus, and those menus are dead ends. You can't wire a string from another node into them. So when you want to pick a CLIP type dynamically - say, based on an earlier choice in the workflow, or a value that comes out of a text-processing node - you're stuck.

    Enviral CLIP Type is a tiny adapter that fixes exactly that one problem. It presents the same list of CLIP loader types as a dropdown and accepts a linked string from another node, then outputs the result as the exact native combo type that Load CLIP expects. Think of it as a translator between the string world and the dropdown world.

    How it works

    The node reads the current list of CLIP types straight from ComfyUI's own CLIPLoader node definition, so it always matches whatever your installed ComfyUI supports. Currently that includes stable_diffusion, stable_cascade, sd3, flux2, ltxv, wan, krea2, qwen_image, hunyuan_image, ideogram4, and more. You don't maintain this list; it stays in sync with ComfyUI.

    The matching is deliberately lenient for linked strings: exact match first, then case/path-insensitive comparison, then a unique path-suffix match. If your string doesn't resolve, the node fails validation before the downstream loader runs and suggests the closest real options, so you get a readable error instead of a confusing failure mid-graph.

    Input and output

    • type - dropdown or linked string; defaults to stable_diffusion.
    • Output type - the native combo value to feed Load CLIP's type socket.

    Two sockets, that's the whole node.

    Install

    Part of 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. Zero extra dependencies.

    When you'd actually use it

    The realistic case: you're building a workflow that switches between models - Krea 2 needs krea2, Z-Image needs a Qwen-family type, WAN needs wan - and you want one graph that adapts instead of three duplicated graphs. Pair this with the pack's other typed selectors (Enviral Diffusion Model Name, Enviral Checkpoint Name) and a single "model flavor" string can drive your whole loader chain. If you never select models dynamically, you can skip it; but it's free to install and it makes those adapter graphs much cleaner than string-soup workarounds.

    CategoryEnviralDesign/selectors

    Inputs (1)

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

    Outputs (1)

    NameTypeDescription
    typestable_diffusion,stable_cascade,sd3,stable_audio,mochi,ltxv,pixart,cosmos,lumina2,wan,hidream,chroma,ace,omnigen2,qwen_image,hunyuan_image,flux2,ovis,longcat_image,cogvideox,lens,pixeldit,ideogram4,boogu,krea2,joyimage,mage,minimaxNative-compatible Load CLIP type combo.