ComfyUI Node

✍ String Input

A boring string node that exists because ComfyUI primitives can't be wired

By alt-key-projectΒ·Created 3 years agoΒ·Updated 2 years agoΒ· 114
✍ String Input
    • STRING
    β—„valueβ–Ί

    This is a node that does nothing, and that's the point. String Input [Dream] takes a single-line string you type in and passes it straight through unchanged - a pure passthrough. If that sounds pointless, you're right about the surface and wrong about the reason. In older ComfyUI, the built-in primitive/string widget couldn't always be routed as a first-class wire into nodes that wanted a STRING input. The Dream Project pack added this (and its siblings Float Input, Int Input, Text Input) explicitly "until primitive routing issues are solved," which is the most honest node description in the ecosystem.

    So when do you actually reach for it? Whenever you need a string to be a wire instead of a widget. A token from the pack's String Tokenizer, or a filename that gets rebuilt by other nodes, has to flow through an input slot - and this node is the clean source for that slot. It's also handy as a deterministic feed inside animation loops where a widget value isn't being re-read the way you expect. It's not glamorous, but it's the kind of utility that unblocks a workflow at 2am.

    The inputs that matter

    • value - the string, single-line. That's it. One input, one output.

    The output is STRING - the same text you typed, untouched. (If you need multi-line, the same pack ships Text Input [Dream], which is the multiline sibling with an identical passthrough design.)

    Installing it

    It comes with the whole pack, so install once:

    cd ComfyUI/custom_nodes
    git clone https://github.com/alt-key-project/comfyui-dream-project.git
    cd comfyui-dream-project
    pip install -r requirements.txt
    

    or search "Dream Project Animation Nodes" in ComfyUI Manager, then restart ComfyUI. Watch the numpy<2.0 pin in requirements if pip touches your environment.

    Common issues

    Honestly, the failures with this node aren't its fault. The main confusion is expecting it to do something - it won't transform, join, or validate. If you need string operations, look at String Tokenizer [Dream] (split and pick) or the WAS Node Suite the pack's README recommends alongside it. One more thing worth knowing: the pack is no longer updated per its README, so don't expect fixes to the underlying primitive-routing problem from here - but the node works as designed on current ComfyUI.

    Category✨ Dream/πŸ›  utils

    Inputs (1)

    NameTypeDefaultDescription
    valueSTRINGβ€”

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”