From 7956f23d963e0a76ac2f155369e5d079d4a75c06 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Sun, 21 Jun 2026 21:29:58 +0200 Subject: [PATCH] HOW DID I MISS STRING RETURNING AUDIO????? --- more_math/StringMathNode.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/more_math/StringMathNode.py b/more_math/StringMathNode.py index bfbab63..0e5a7d0 100644 --- a/more_math/StringMathNode.py +++ b/more_math/StringMathNode.py @@ -35,7 +35,7 @@ class StringMathNode(io.ComfyNode): types=[io.String,MrmthParseTree], tooltip="Expression to apply on weights", ), - io.Int.Input(id="batching", default=0), + io.Int.Input(id="batching", default=0,min=-1), io.Boolean.Input( id="remember_stack", default=False, @@ -47,7 +47,7 @@ class StringMathNode(io.ComfyNode): MrmthStack.Input(id="stack", tooltip="Access stack between nodes",optional=True) ], outputs=[ - io.Audio.Output(is_output_list=True), + io.String.Output(is_output_list=True), MrmthStack.Output(), ], ) @@ -90,8 +90,11 @@ class StringMathNode(io.ComfyNode): tree = Expression visitor = UnifiedMathVisitor(variables, len(V[0]),torch.device("cpu"),state_storage=stack) result = visitor.visit(tree) - result = str(result) + if batching == -1: + return (result, stack) + + result = str(result) if batching and batching > 0: def chunks(s, n): """Produce `n`-character chunks from `s`."""