add unbatcher

This commit is contained in:
mcDandy
2026-04-28 16:25:19 +02:00
parent c7390e6750
commit 82e71a2845
2 changed files with 16 additions and 6 deletions
+13 -5
View File
@@ -1,13 +1,21 @@
class StackUnBatcher:
@classmethod
from comfy_api.latest import io
from .Stack import MrmthStack
class StackUnBatcher(io.ComfyNode):
@classmethod
def define_schema(cls) -> io.Schema:
return io.Schema(
node_id="mrmth_StackUnBatcher",
category="More math",
display_name="Stack UnBatcher",
is_input_list=True,
inputs=[
io.Stack.Input(id="stack", tooltip="Input stack to unbatch"),
MrmthStack.Input(id="stack", tooltip="Input stack to unbatch"),
],
outputs=[
io.Stack.Output(id="unbatched", tooltip="Unbatched stack output"),
],´ú
MrmthStack.Output(id="unbatched", tooltip="Unbatched stack output"),
])
@classmethod
def execute(cls, stack):
return (stack[-1],)
+3 -1
View File
@@ -28,6 +28,7 @@ from .NoiseMathNode import NoiseMathNode
from .AudioMathNode import AudioMathNode
from .StringMathNode import StringMathNode
from .SelectiveGuiderMathNode import SelectiveGuiderMathNode
from .StackUnBatcher import StackUnBatcher
from .ScriptTextWindow import ScriptTextInput
@@ -172,7 +173,8 @@ class MoreMathExtension(ComfyExtension):
AudioMathNode,
StringMathNode,
ScriptTextInput,
SelectiveGuiderMathNode
SelectiveGuiderMathNode,
StackUnBatcher
]