WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

Is there a Text Node that can drive the filename_prefix in the Image Save node? #13

Closed BoosterCore closed 1 year ago

BoosterCore commented 1 year ago

After I converted the filename_prefix to input, I found that no node can be connected to it. Suppose I want to extract a keyword from the prompt and use it as a prefix of the image document, this function will be helpful.

WASasquatch commented 1 year ago

Right Click -> Convert filename_prefix to input image Add Util -> Primitive image

BoosterCore commented 1 year ago

Thank U very much! But Primitive node has no input. I use Text Multiline, Text Random Line and Text Concatenate to created a dynamic prompt. I want to make the main subject in the dynamic prompt to name the file prefix automaticly. My demand may be too strange, sorry!

BoosterCore commented 1 year ago

dp I want to read string from here to filename_prefix.

BoosterCore commented 1 year ago

An other question, Is the comma necessary in Text Multiline?

WASasquatch commented 1 year ago

Oh I see what you mean!

I'll add some nodes to convert Text to String (I thought about this but must have spaced when doing text nodes. Give me like half an hour to wake up and I'll get that in.

PS, nope, no comma is necessary. It'll read the lines in a text file or multiline string.

WASasquatch commented 1 year ago

There we go, Text to String node is added: https://github.com/WASasquatch/was-node-suite-comfyui/blob/main/WAS_Node_Suite.py#L3609

image

BoosterCore commented 1 year ago

Really appreciate your help