Nodes/WeiLin-ComfyUI-prompt-all-in-one/WeiLin TwoInOne Prompt To String
ComfyUI Node

WeiLin TwoInOne Prompt To String

Both prompt boxes in one node — the tidy one

By weilin9999·Created 2 years ago·Updated about a year ago· 256
WeiLin TwoInOne Prompt To String
    • 正向 STRING
    • 反向 STRING
    positive
    negative

    Of the three "prompt to string" nodes in the WeiLin pack, this is the one to actually put in a graph. It does nothing smarter than the others - positive in, positive out; negative in, negative out - but it keeps both boxes in one place, and for most people the pair belongs together.

    What it is

    A two-input, two-output passthrough. positive and negative multiline boxes on the node, and the same WebUI-style editor treatment the pack gives every text box: tag autocomplete, translation, toggles, and a "打开可视化PromptUI" button that opens the visual tag editor in an iframe and syncs its result back into both fields. On the Python side it's two returns - no processing, just (positive, negative).

    Why this one instead of the single boxes

    Three reasons to prefer it over wiring up WeiLinComfyUIPromptAllInOneGreat and WeiLinComfyUIPromptAllInOneNeg side by side:

    1. Half the nodes. A workflow where your prompt and negative travel together stays half the size.
    2. The visual editor handles both fields at once - you're not flipping between two iframes to edit a pair that always changes together.
    3. The global prompt editor (Ctrl+Alt+W, configurable in ComfyUI settings) reads and writes both boxes in one go.

    It's a small convenience, but it's the kind of small convenience that makes a graph you stare at for hours actually pleasant.

    Inputs and outputs

    • positive (multiline string) → 正向 STRING ("positive STRING")
    • negative (multiline string) → 反向 STRING ("negative STRING")

    The output names are Chinese for every language setting - that's just how the author named them. Standard wiring: positive output into the positive slot of a CLIPTextEncode, negative output into its negative slot. Or into anything else that takes a string, if you're building a prompt-tampering chain.

    Installing

    cd ComfyUI/custom_nodes
    git clone https://github.com/weilin9999/WeiLin-ComfyUI-prompt-all-in-one
    

    or search WeiLin-ComfyUI-prompt-all-in-one in ComfyUI Manager and restart. First launch auto-installs the pack's gradio and ruamel.yaml dependencies - expect a wall of startup log lines, then it's ready.

    The honest take

    If the pack's tag editor is your reason for being here, this is the node you'll reach for daily, and it does its one job without surprises. Two things to know before you commit: the UI is Chinese-first (buttons and output names lean heavily on Chinese even with English selected), and the pack is deprecated - the README's first line points you to the successor WeiLin-Comfyui-Tools, whose nodes are incompatible though your tag data can migrate. Frozen, but functional. If you're only here because you wanted a string node, stock ComfyUI's own text field plus a plain String node does the same thing with less baggage - this one earns its place when the editor is the point.

    CategoryWeiLin Nodes (WeiLin节点)

    Inputs (2)

    NameTypeDefaultDescription
    positiveSTRING
    negativeSTRING

    Outputs (2)

    NameTypeDescription
    正向 STRINGSTRING
    反向 STRINGSTRING