ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

add LoadText to `nodes_string` to enable wildcard usage

Open yoinked-h opened this issue 6 months ago • 2 comments

added LoadString and GetRandomLine both of them do what they say LoadString wants MIME text (added it in folder_paths for type checking) GetRandomLine recieves a string, and using torch.randint for seed control, gives a random line (its on CPU and shape 1 so i think its fine)

yoinked-h avatar Jun 20 '25 04:06 yoinked-h

Pardon me, but isn't the random line node a little too similar to the one I made a still-open PR for a bit ago, #8364? This is still useful as a PR though because I did mention that a load string node would be useful for it.

LaVie024 avatar Jun 20 '25 05:06 LaVie024

oh. in that case i'll just remove the random line thing then

yoinked-h avatar Jun 20 '25 05:06 yoinked-h