ComfyUI Node Runs on cloud

Text String

A one-line reusable text constant for your graph

By WASasquatch·Created 3 years ago·Updated a day ago· 1,839
Text String
    • TEXT
    • TEXT_B
    • TEXT_C
    • TEXT_D
    • TEXT_E
    • TEXT_F
    • TEXT_G
    • TEXT_H
    • TEXT_I
    • TEXT_J
    • TEXT_K
    • TEXT_L
    • TEXT_M
    • TEXT_N
    • TEXT_O
    • TEXT_P
    • TEXT_Q
    • TEXT_R
    • TEXT_S
    • TEXT_T
    • TEXT_U
    • TEXT_V
    • TEXT_W
    • TEXT_X
    text
    text_b
    text_c
    text_d
    text_e
    text_f
    text_g
    text_h
    text_i
    text_j
    text_k
    text_l
    text_m
    text_n
    text_o
    text_p
    text_q
    text_r
    text_s
    text_t
    text_u
    text_v
    text_w
    text_x

    Text String is about as simple as ComfyUI nodes get: it holds a single line of text and outputs it as a STRING. No processing, no logic - just a value you type once and can wire to as many downstream nodes as you want.

    Why bother with a dedicated node for this

    ComfyUI's native STRING widgets are usually tied directly to whatever node they live on - if three different nodes need the same filename prefix or the same short label, you're typing it three times and hoping you don't typo one of them. Text String gives you a standalone value with its own output socket, so you set it once and route it wherever it's needed: into a filename, into Text Add Tokens as a value to substitute, into a Text Concatenate chain, or into anything else expecting a STRING. It's a small thing, but it's the difference between "one source of truth" and "three copies that can drift out of sync."

    How it compares to its siblings

    The suite has a few text-input flavors and it's worth knowing which is which. Text String is a single line. Text Multiline is the same idea but for paragraph-length text - full prompts, notes, anything spanning more than one line. Text List is different again: it holds multiple separate string entries as a list, for nodes further downstream that iterate over several values rather than consuming one. If you just need one short reusable value, this is the lightest option of the three.

    Installing it

    Through ComfyUI Manager: search "WAS Node Suite", install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/WASasquatch/was-node-suite-comfyui
    cd was-node-suite-comfyui
    pip install -r requirements.txt
    

    Nothing extra needed for this node specifically - no models, no special dependencies.

    Troubleshooting

    There's genuinely very little to break here - it's a static value. The one thing to watch for is accidentally leaving trailing whitespace or a stray newline in the field if you copy-pasted the text in; that can produce confusing mismatches downstream in nodes doing exact string comparisons, like Text Compare or Text Find.

    The suite-wide caveat still applies even to a node this simple: WAS Node Suite hasn't been actively developed since December 2023, so if it's missing from your node menu entirely after a ComfyUI update, that's a whole-pack import failure (usually a pinned legacy dependency like BLIP support conflicting with the newer core) rather than anything wrong with this specific node. Check your startup console before assuming Text String itself is the problem.

    CategoryWAS Suite/Text

    Inputs (24)

    NameTypeDefaultDescription
    textSTRINGText for the first output. Tokens such as `[time]`, `[user]` and `[hostname]` are replaced with their values, so this is a convenient source for file name prefixes and captions.
    text_boptSTRINGText for the second output, expanded the same way.
    text_coptSTRINGText for the third output, expanded the same way.
    text_doptSTRINGText for the fourth output, expanded the same way.
    text_eoptSTRINGText 5, emitted on its own output. Tokens are substituted.
    text_foptSTRINGText 6, emitted on its own output. Tokens are substituted.
    text_goptSTRINGText 7, emitted on its own output. Tokens are substituted.
    text_hoptSTRINGText 8, emitted on its own output. Tokens are substituted.
    text_ioptSTRINGText 9, emitted on its own output. Tokens are substituted.
    text_joptSTRINGText 10, emitted on its own output. Tokens are substituted.
    text_koptSTRINGText 11, emitted on its own output. Tokens are substituted.
    text_loptSTRINGText 12, emitted on its own output. Tokens are substituted.
    text_moptSTRINGText 13, emitted on its own output. Tokens are substituted.
    text_noptSTRINGText 14, emitted on its own output. Tokens are substituted.
    text_ooptSTRINGText 15, emitted on its own output. Tokens are substituted.
    text_poptSTRINGText 16, emitted on its own output. Tokens are substituted.
    text_qoptSTRINGText 17, emitted on its own output. Tokens are substituted.
    text_roptSTRINGText 18, emitted on its own output. Tokens are substituted.
    text_soptSTRINGText 19, emitted on its own output. Tokens are substituted.
    text_toptSTRINGText 20, emitted on its own output. Tokens are substituted.
    text_uoptSTRINGText 21, emitted on its own output. Tokens are substituted.
    text_voptSTRINGText 22, emitted on its own output. Tokens are substituted.
    text_woptSTRINGText 23, emitted on its own output. Tokens are substituted.
    text_xoptSTRINGText 24, emitted on its own output. Tokens are substituted.

    Outputs (24)

    NameTypeDescription
    TEXTSTRINGThe text field, with its tokens replaced.
    TEXT_BSTRINGThe text_b field, with its tokens replaced.
    TEXT_CSTRINGThe text_c field, with its tokens replaced.
    TEXT_DSTRINGThe text_d field, with its tokens replaced.
    TEXT_ESTRINGText 5, with its tokens substituted.
    TEXT_FSTRINGText 6, with its tokens substituted.
    TEXT_GSTRINGText 7, with its tokens substituted.
    TEXT_HSTRINGText 8, with its tokens substituted.
    TEXT_ISTRINGText 9, with its tokens substituted.
    TEXT_JSTRINGText 10, with its tokens substituted.
    TEXT_KSTRINGText 11, with its tokens substituted.
    TEXT_LSTRINGText 12, with its tokens substituted.
    TEXT_MSTRINGText 13, with its tokens substituted.
    TEXT_NSTRINGText 14, with its tokens substituted.
    TEXT_OSTRINGText 15, with its tokens substituted.
    TEXT_PSTRINGText 16, with its tokens substituted.
    TEXT_QSTRINGText 17, with its tokens substituted.
    TEXT_RSTRINGText 18, with its tokens substituted.
    TEXT_SSTRINGText 19, with its tokens substituted.
    TEXT_TSTRINGText 20, with its tokens substituted.
    TEXT_USTRINGText 21, with its tokens substituted.
    TEXT_VSTRINGText 22, with its tokens substituted.
    TEXT_WSTRINGText 23, with its tokens substituted.
    TEXT_XSTRINGText 24, with its tokens substituted.