ComfyUI Node

文本

A plain text box that hands its contents to the graph

By muyexiuluo·Created about a year ago·Updated 23 days ago· 89
文本
    • 文本
    编辑文本

    This one is so simple it barely deserves a page: MuyeTextEditOutput is a multiline text box. You type (or paste) text into the 编辑文本 field, and it outputs that text as a STRING - no parsing, no transformation, no splitting. The whole job is being a stable source of a string inside the graph, or a visible readout at the end of a pipeline.

    Don't write it off, though. ComfyUI is oddly short on plain "here is some text" nodes that just sit in the graph as a reusable constant. A text box with a wire coming out is genuinely useful as a prompt source, a filename prefix, a fixed caption for a batch of images, or a value you want to reference in multiple places without retyping it. And because it's marked as an OUTPUT node, the current text is always displayed on it in the UI - which makes it a nice passive display for what a chain of text-processing nodes produced, even if nothing downstream consumes it.

    One behavior worth knowing: it outputs the text as a list (a single-element list containing your whole string). That's deliberate - this pack's text nodes speak list-of-strings, and it lets the output plug straight into list consumers like BatchTextReplace without an adapter. Most nodes that accept a plain STRING will also accept it fine, but if you see a "list where string expected" hiccup, that's why. A newline in your text is preserved - it's not split on input, unlike the pack's TextListSplit node, which is the one you'd reach for when you do want to break text into pieces.

    Install

    ComfyUI Manager → search "muye" → install "ComfyUI-Muye-nodes", restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/muyexiuluo/ComfyUI-Muye-nodes
    cd ComfyUI-Muye-nodes
    pip install -r requirements.txt
    

    then restart. Zero dependencies beyond Python itself. The README's manual block references an older ComfyUI_Muye.git URL; use the -nodes one above. Display name is 文本; the input field is 编辑文本 and the output is 文本. If the node's missing, check the console for [Muye] Failed to load module - the pack silently drops any module that fails to import.

    CategoryMuye/文本

    Inputs (1)

    NameTypeDefaultDescription
    编辑文本STRING手动输入文本

    Outputs (1)

    NameTypeDescription
    文本STRING