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

The original names #220

Closed alexbofa closed 1 year ago

alexbofa commented 1 year ago

Hello. How do I keep the original names of the keyframes? So that the output (red) has the same file names as the input (green)? Screen-2239 copy Screen-2240

WASasquatch commented 1 year ago

I am not sure with that setup as it's just loading up images. So all I could do is output a list of filenames and figure out how to use filename_prefix in overwrite mode.

If you use the load Image batch that does them one at a time each prompt run, it does output the filename.

alexbofa commented 1 year ago

I am not sure with that setup as it's just loading up images. So all I could do is output a list of filenames and figure out how to use filename_prefix in overwrite mode.

If you use the load Image batch that does them one at a time each prompt run, it does output the filename.

Thank you, I kind of managed to do what I wanted, but the problem remained with extension (.png) Of course, it's easiest to rename it later through Total Commander. But is it possible to remove 4 characters from the end? Screen-2274 Screen-2275

WASasquatch commented 1 year ago

You can use Find and Replace nodes to replace .png with empty string. You can also use the truncation node (Text String Truncate) if you update to the latest to include a patch I just made. Then you can use -4 or something like that to truncate off the last 4 characters of a string.

[image: image.png]

On Fri, Sep 29, 2023 at 1:10 PM alexbofa @.***> wrote:

I am not sure with that setup as it's just loading up images. So all I could do is output a list of filenames and figure out how to use filename_prefix in overwrite mode.

If you use the load Image batch that does them one at a time each prompt run, it does output the filename.

Thank you, I kind of managed to do what I wanted, but the problem remained with extension (.png) Of course, it's easiest to rename it later through Total Commander. But is it possible to remove 4 characters from the end? [image: Screen-2274] https://user-images.githubusercontent.com/58225118/271709921-6a9af59e-c2f5-4ed5-82df-2bc805bc8040.png [image: Screen-2275] https://user-images.githubusercontent.com/58225118/271709952-56890257-04f2-46e5-944c-77b58f987808.png

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/220#issuecomment-1741430609, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZMODVYTMDUMVE7YD3LX44TLZANCNFSM6AAAAAA5LM2OEE . You are receiving this because you commented.Message ID: @.***>

-- Sincerely, Jordan S. C. Thompson

alexbofa commented 1 year ago

Thx! Find and Replace solved my problem.