ComfyUI Node Runs on cloud

Text

A single-line string source, current naming

By Derfuu·Created 3 years ago·Updated 2 years ago· 455
Text
    • STRING
    Text

    DF_Text is as plain as a node gets: type a single line of text into the widget, and it outputs that string. You use it to hold a reusable snippet - a style tag, a trigger word, a filename prefix - in one place and route it to as many nodes as need it, instead of retyping the same string into three different prompt boxes. It's one of Derfuu_ComfyUI_ModdedNodes' "variable" nodes, part of a math-and-utility pack that's been around since ComfyUI's early days, before there was much native tooling for handling string values mid-graph.

    The pack also has a bare Text node with the exact same job - single-line input, STRING output, same Derfuu_Nodes/Variables category. That older, unprefixed node is the one you'll actually find in a lot of downloaded workflows, since it predates the DF_ naming convention the pack settled on for DF_Sum, DF_Sinus, and the rest. DF_Text is the current name; if you're starting a graph fresh, use this one. If you're just trying to fix a red node in an inherited workflow, either one does the same thing.

    How it works

    You type text into the widget and the node emits it as-is, as a STRING. No processing, no multiline support - it's a single-line source, not a prompt box. For multiple lines, this pack ships a separate Text Box node; for {a|b|c} wildcard-style variation, there's a DynamicPrompts Text Box.

    The inputs and outputs that matter

    • Text (STRING, single-line, default empty) - the string you set on the widget.
    • Output: STRING - that value, fanned out to however many downstream nodes need it (a CLIP Text Encode, a concat node, a filename builder).

    That's the whole node - one field, one output, no settings to get wrong.

    Where it fits

    The value is single-source-of-truth for a recurring piece of text: keep a trigger word or a style phrase in one DF_Text node, wire it into several prompts, and edit it once instead of hunting down every copy. It composes naturally with a string concat node when you're assembling a prompt from a few reusable parts rather than typing one long string by hand.

    How to install it

    ComfyUI Manager: search Derfuu_ComfyUI_ModdedNodes, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes
    

    then restart. No dependencies, no models - plain Python.

    Common issues & troubleshooting

    You need more than one line. This node is strictly single-line. Reach for Derfuu's text-box variant, or ComfyUI's own multiline primitive, for paragraphs and negative prompts.

    Missing/red node in a downloaded workflow. Older shared graphs are just as likely to use the bare Text node as DF_Text - both do the same job, so if either shows up red because the pack isn't installed, install it once and both resolve.

    Node vanished after a pack update. Derfuu has a documented habit of deleting deprecated nodes outright on updates instead of keeping a legacy-labeled version - this has bitten people who relied on the pack for a while, including on text/string nodes specifically. If a workflow's text node loads red after you update, the version you have may no longer include it under that name; drop in a fresh DF_Text and reconnect. A ModuleNotFoundError mentioning Derfuu_ComfyUI_ModdedNodes_legacy means a duplicated folder - keep exactly one, named Derfuu_ComfyUI_ModdedNodes.

    Do you actually need it? ComfyUI ships a native string primitive now. DF_Text mostly persists because older workflows already lean on it - for something brand new, the built-in avoids the extra dependency.

    CategoryDerfuu_Nodes/Variables

    Inputs (1)

    NameTypeDefaultDescription
    TextSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING