ComfyUI Node Runs on cloud

Text

A single-line string you set once and reuse

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

    Text is about as simple as a node gets: a single-line box you type a string into, and it outputs that string. You use it to hold a reusable snippet - a style tag, a trigger word, a prefix - in one place and route it around the graph instead of re-typing it into every prompt box. In older ComfyUI workflows these Derfuu "text" nodes were the standard way to feed string inputs, which is exactly why you still bump into them in downloaded graphs.

    How it works

    You enter text on the widget and the node emits it as a STRING. No processing, no multiline - it's a single-line source. If you need multiple lines, Derfuu has a text-box variant; if you want {a|b|c} wildcard variation, use the DynamicPrompts Text Box instead.

    The inputs and outputs that matter

    • Text (STRING, single-line) - the string you set.
    • Output: STRING - that string, fanned out to as many consumers as you want (a CLIP Text Encode, a concat node, a filename).

    Where it fits

    The value is single-source-of-truth for a piece of text. Keep your trigger word or a recurring style phrase in one Text node and wire it into several prompts; edit once, update everywhere. It also composes: feed a couple of Text nodes into a concat to assemble prompts from reusable parts. On the community side, these Derfuu text/primitive nodes are a common sight in shared workflows - often labeled things like "pre text" and "app text" - precisely because they predate a lot of the native tooling.

    How to install it

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

    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 single-line. Use Derfuu's multiline text box (or the DynamicPrompts one) for paragraphs and negative prompts.

    Missing/red node in a downloaded workflow. This is the classic case: a shared graph uses Derfuu's text/primitive nodes and they show up red because the pack isn't installed - install it, or, since Derfuu has a history of deleting deprecated nodes on updates, swap in any equivalent string node and reconnect. As one long-time user put it, you can delete these and drop in a native text/primitive node, hook up the same connections, and the workflow runs fine - the string just has to reach the text input.

    ModuleNotFoundError mentioning Derfuu_ComfyUI_ModdedNodes_legacy. You've got a duplicated or renamed copy of the folder. Keep exactly one, named Derfuu_ComfyUI_ModdedNodes, and remove the rest.

    Do you need it? Native ComfyUI has a primitive string node now, and most utility packs offer text nodes. Text persists because old workflows lean on it - for something new, the built-in avoids the dependency.

    CategoryDerfuu_Nodes/Variables

    Inputs (1)

    NameTypeDefaultDescription
    TextSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING