How can I add a truncated version of Positive prompt to filename? #146
-
AS per subject, I'd like to add the positive prompt (limited by X words or Y character length) to the filename when output. I'm thinking I have to add a custom text node? How can it pull the prompt needed, and more importantly, can it be limited in length? Thanks! TB |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The widgets meta inputs don't seem to be working right in custom nodes so a theoretical node would just have to accept a text input that you also input into a CLIPTextEncode or whatever. Adding a truncations node shouldn't be that hard. Just have a mode for character/word and number for truncations and swap functionality by mode. |
Beta Was this translation helpful? Give feedback.
-
I've added a node for this: fb53a8a |
Beta Was this translation helpful? Give feedback.
I've added a node for this: fb53a8a