Nodes/ComfyUI-ZML-Image/ZML_选择文本V4
ComfyUI Node

ZML_选择文本V4

Sometimes the simplest node is the right one

By zml-w·Created about a year ago·Updated 2 months ago· 218
ZML_选择文本V4
    • 文本
    文本

    Every pack ends up with a node that does almost nothing, and this is that node. ZML_SelectTextV4 is a single multiline text box that returns exactly what you type. No toggles, no separator, no merging, no random mode - one input field named 文本, one output named 文本, and the backend's entire implementation is return (文本,). It's the distilled, minimal member of the SelectText family.

    Don't read that as useless. There's a real reason this shape exists: ComfyUI's stock text widgets are attached to nodes that do other things, and when you want a dedicated text source - one clean wire out of a box that exists purely to hold a string - a pass-through node is the tidy answer. It also gives you a stable anchor: you can convert its output into the workflow's single source of truth for a prompt, then fan that wire out to several encoders, which is the "one source, many consumers" pattern from ComfyUI's plumbing layer. The stock PrimitiveString fills the same niche; this one just stays consistent with the rest of the ZML pack.

    What it does, fully

    One required input, one output:

    • 文本 (input) - a multiline STRING widget with a "输入文本" placeholder. Type your prompt, filename, seed suffix, whatever.
    • 文本 (output) - the same string, unchanged, ready for a CLIP Text Encode or any other STRING socket.

    That's the whole contract. The earlier changelog described a V4 with five hidden text boxes swapped by a selector, but the shipped node is the simple single-box version, and honestly the simple version is the more useful one - there's nothing to misconfigure.

    When to grab it

    When you want a text box that lives on the canvas as its own thing, or you're standardizing on ZML text nodes and don't want to remember which sibling has which quirk. For prompt variants and A/B toggling, use V3 (dynamic rows, presets, random) or V2 (five fixed slots). For "I just need a string from point A to point B," V4 is the whole story and it ends in one paragraph.

    Install

    Part of ComfyUI-ZML-Image: ComfyUI Manager → search "ComfyUI-ZML-Image", or cd ComfyUI/custom_nodes && git clone https://github.com/zml-w/ComfyUI-ZML-Image, restart. Labeled ZML_选择文本V4 in a Chinese default UI - the English patch covers it. No models, no dependencies beyond stock ComfyUI.

    Categoryimage/ZML_图像/文本

    Inputs (1)

    NameTypeDefaultDescription
    文本STRING

    Outputs (1)

    NameTypeDescription
    文本STRING