ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Filename formatting not working with SaveAnimatedWEBP

Open Tralen opened this issue 1 year ago • 3 comments

Greetings,

Currently the video saving node doesn't seem to respect the formatting filename as the SaveImage node does. To reproduce:

  • Right-click the SaveAnimatedWEBP node.
  • Select to export filename_prefix as widget.
  • Add a primitive node with the formatting, in my case %date:yyyy-MM-dd%/%date:hhmmss%_%KSampler.seed%
  • When the video is saved, it is named with the formatting string, without actually computing the formatting.

Thank you for this wonderful tool.

Tralen avatar Jan 16 '24 18:01 Tralen

Hi @Tralen , I figured that, in the latest versions of Comfy, there is no need for an Primitive Node to format the output string. It can be done directly in the Save Image node. Give it a try and let us know.

lucianosb avatar Feb 18 '24 21:02 lucianosb

Thank you, @lucianosb, it is working great with the SaveImage node, however, it still doesn't work with the SaveAnimatedWEBP node.

Tralen avatar Feb 19 '24 01:02 Tralen

Indeed... there is no function similar to applyTextReplacements() implemented there as far as I could tell.

lucianosb avatar Feb 19 '24 03:02 lucianosb