From 3884a8cb1bf3042c54f9b368ae17f42e8a06601e Mon Sep 17 00:00:00 2001 From: mcDandy Date: Sun, 21 Jun 2026 22:33:13 +0200 Subject: [PATCH] only legacy variables work as of now. --- more_math/StringMathNode.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/more_math/StringMathNode.py b/more_math/StringMathNode.py index d342fe3..8a5daab 100644 --- a/more_math/StringMathNode.py +++ b/more_math/StringMathNode.py @@ -61,7 +61,7 @@ class StringMathNode(io.ComfyNode): def execute(cls, V, F, Expression, batching=0, remember_stack=False, stack={}): variables = { - "a": V.get(0,""), "b": V.get(1,""), "c": V.get(2,""), "d": V.get(3,""), + "a": V.get("V0",""), "b": V.get("V1",""), "c": V.get("V2",""), "d": V.get("V3",""), "w": F.get("F0", 0.0) if F.get("F0") is not None else 0.0, "x": F.get("F1", 0.0) if F.get("F1") is not None else 0.0, "y": F.get("F2", 0.0) if F.get("F2") is not None else 0.0, @@ -88,7 +88,8 @@ class StringMathNode(io.ComfyNode): tree = parse_expr(Expression) else: tree = Expression - visitor = UnifiedMathVisitor(variables, len(V[0]),torch.device("cpu"),state_storage=stack) + + visitor = UnifiedMathVisitor(variables, len(V["V0"]),torch.device("cpu"),state_storage=stack) result = visitor.visit(tree) if batching == -1: