test to test if problem in node or in comfyUI

This commit is contained in:
mcDandy
2026-04-22 00:03:03 +02:00
parent 0e42e60aa8
commit dad80da1dd
2 changed files with 40 additions and 1 deletions
+36
View File
@@ -0,0 +1,36 @@
"""Color math node using integer color representation."""
from __future__ import annotations
from comfy_api.latest import io
class mintest(io.ComfyNode):
"""Apply expression math to Color values converted to packed RGB integers."""
@classmethod
def define_schema(cls) -> io.Schema:
"""Define node schema."""
return io.Schema(
node_id="mrmth_ag_mintest",
category="More math",
display_name="Minimal test",
inputs=[
io.Autogrow.Input(id="V", template=io.Autogrow.TemplatePrefix(io.Color.Input("values"), prefix="V", min=1, max=50)),
],
outputs=[
io.Color.Output(id="color"),
],
)
@classmethod
def execute(
cls,
V
):
"""Execute color expression and return resulting color."""
print(V)
return V["V0"]
+4 -1
View File
@@ -32,6 +32,8 @@ from .SelectiveGuiderMathNode import SelectiveGuiderMathNode
from .ScriptTextWindow import ScriptTextInput
from .minimal_test import mintest
from comfy_api.latest import ComfyExtension, io
@@ -174,7 +176,8 @@ class MoreMathExtension(ComfyExtension):
StringMathNode,
ScriptTextInput,
SelectiveGuiderMathNode,
ColorMathNode
ColorMathNode,
mintest
]