2025-07-24 14:48:34 +10:00
2025-07-24 14:39:19 +10:00
2025-07-20 20:52:13 +10:00
2025-07-24 14:48:34 +10:00

ComfyUI-Stacker

Simple stack push/pop for images, strings and integers.

The main use of this is to reduce unloading and loading of models when there are multiple steps in a workflow. E.g. using an SDXL model with ControlNet to create images to later feed into an Image to Video model.

The Push nodes will save a file in the specified folder, default being a 'Stack' folder under the 'ComfyUI' folder. It will save a PNG for images, and text files for strings and numbers.

The Pop will take the last file that was saved in the stack, and then delete it.

The 'Key' can be considered the variable name of the stack. For example, you could have two StackPushInt nodes, one with the key of 'width' and the other 'height', then be able to pull the right number in the next workflow for each variable.

A generic object stack has also been implemented, but by default it is disabled.

Todo

Clean the key text

Allow the stack to pop a default value if it is empty

Add an override option

Allow a 'peek' and 'sneak from bottom' option

Fix a 'no-change' prompt still having to be re-encoded

S
Description
No description provided
Readme CC0-1.0
67 KiB
Languages
Python 100%