ComfyUI-Better-Strings

ComfyUI-Better-Strings
★ 2

字符串处理ComfyUI扩展节点工具文本格式化
为 ComfyUI 提供一组便捷的字符串处理节点,简化文本的构建、拼接、拆分与格式化等操作,提高工作流中字符串操作的效率与可维护性。
💡 在流水线中快速拼接、拆分与格式化文本用于提示或文件名生成。
🍴 3 Forks💻 Python🔄 2025-03-27
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/6862a2001521
image
📄 README

ComfyUI Better Strings

Strings should be easy, and simple.

This repository aims to provide a set of nodes that make working with strings in ComfyUI a little bit easier.

As it currently stands, it adds a single, extremely basic node: The Better String.

In the future, I hope to add support for better string concatenation as well as simple A1111 style wildcards.

Better String

The Better String node is a simple node that gives you access to a primitive multi-line string.

_”But there’s already a primitive string node, why do I need this?”_

Well, you don’t need this. But you might want this if you are sick and tired of your primitive node defaulting to a singleline string and cutting off

half of the content that you’ve entered.

Example:

Convert the filename of the Save Image node to a widget and drag in a primitive string node.

See that, once the string gets sufficiently large, it cuts off half of the string. This is most frustrating when using variables to name files,

such

as your checkpoint name, datetime, or prompt details.

Now, you can plug in a Better String node and it will automatically default to a multiline string, allowing you to see the entire string.

It also allows you to connect the primitive to rerouting nodes way easier, if you’re into that sort of thing.

Installation

Please note: I will be supporting the ComfyUI Registry initiative and you will be able to access my nodes directly

through the registry in the future.

Navigate to ComfyUI/custom_nodes in your terminal of choice, then run the following command:

git clone https://github.com/HaydenReeve/ComfyUI-Better-Strings/

That’s it!

You’ll find my nodes under the heading Better Things 💡