Hayden Reeve 80b4a86678 Fix missing FUNCTION in Better String Node
While it works in some cases, other cases need this little stubby thing here.

This will stop errors when feeding into nodes such as Save Image.
2024-02-05 23:48:29 +08:00
2024-01-30 22:38:15 +08:00

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, if you're into that sort of thing.

Installation

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 💡

S
Description
No description provided
Readme GPL-3.0
60 KiB
Languages
Python 100%