Nodes/tdxh_node_comfyui/TdxhStringInput
ComfyUI Node

TdxhStringInput

A single-line text source for when multiline gets in the way

By youyegit·Created 3 years ago·Updated 5 months ago· 2
TdxhStringInput
    • STRING
    string_valuetdxh

    TdxhStringInput is a text widget (string_value, default "tdxh", single-line) with a STRING output that returns the text untouched. Like the pack's Int and Float inputs, it's a straight pass-through - the value goes in and comes out byte-for-byte.

    The one trait that separates it from ComfyUI's stock String node is that it's single-line. Core's string widget defaults to multiline in modern ComfyUI, which is exactly what you want for a prompt - and exactly the wrong thing for a tag, a filename, a LoRA trigger word, or a caption you're wiring into a text-overlay node. This node is for those single-value strings where a big multiline box is pure friction. The default of "tdxh" is the author's own name, a small tell that this pack is built to feed the author's own workflows rather than a general audience.

    Where it slots in: feed it into any STRING socket - a filename prefix, a fixed tag you append everywhere, a STRING input on a custom node that wants a single token. Pair it with the pack's TdxhImageToSize if you want to capture an image dimension as text for a title node.

    Installing it

    ComfyUI Manager → search tdxh_node_comfyui → install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/youyegit/tdxh_node_comfyui
    

    Restart and it's under TDXH → tdxh_data. Part of a small hobbyist pack (GPL-3.0); the README warns nodes can change between versions. No models, no dependencies beyond the pack's sentencepiece line.

    When to skip it

    If you need multiline (i.e. an actual prompt), the core String node is the right tool. Reach for TdxhStringInput when you want a compact single-line field that doesn't sprawl across the canvas - a small, real ergonomic win even if the node itself is trivial.

    CategoryTDXH/tdxh_data

    Inputs (1)

    NameTypeDefaultDescription
    string_valueSTRINGtdxh

    Outputs (1)

    NameTypeDescription
    STRINGSTRING