Change types

This commit is contained in:
mcDandy
2026-02-21 16:30:52 +01:00
parent 3e7560a565
commit 4bc2b67a85
4 changed files with 46 additions and 19 deletions
+5 -2
View File
@@ -1,5 +1,7 @@
from comfy_api.latest import io
import torch
from .helper_functions import parse_expr
from .ParseTree import MrmthParseTree
class ScriptTextInput(io.ComfyNode):
@@ -13,10 +15,11 @@ class ScriptTextInput(io.ComfyNode):
io.String.Input(id="script", multiline=True),
],
outputs=[
io.String.Output()
MrmthParseTree.Output()
],
)
@classmethod
def execute(cls, script):
return (script,)
expr = parse_expr(script)
return (expr,)