From 9d70c2626bc47f8915e0be8f1bb0d0b17e75c778 Mon Sep 17 00:00:00 2001 From: Terry Jia Date: Sun, 22 Feb 2026 19:24:54 -0500 Subject: [PATCH] test --- nodes.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/nodes.py b/nodes.py index e2fc20d53..7bd12e360 100644 --- a/nodes.py +++ b/nodes.py @@ -2035,6 +2035,28 @@ class ImagePadForOutpaint: return (new_image, mask.unsqueeze(0)) +class TestCurveWidget: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "curve": ("CURVE", {"default": [[0, 0], [1, 1]]}), + } + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("points",) + FUNCTION = "execute" + OUTPUT_NODE = True + CATEGORY = "testing" + + def execute(self, curve): + import json + result = json.dumps(curve, indent=2) + print("Curve points:", result) + return {"ui": {"text": [result]}, "result": (result,)} + + NODE_CLASS_MAPPINGS = { "KSampler": KSampler, "CheckpointLoaderSimple": CheckpointLoaderSimple, @@ -2103,6 +2125,7 @@ NODE_CLASS_MAPPINGS = { "ConditioningZeroOut": ConditioningZeroOut, "ConditioningSetTimestepRange": ConditioningSetTimestepRange, "LoraLoaderModelOnly": LoraLoaderModelOnly, + "TestCurveWidget": TestCurveWidget, } NODE_DISPLAY_NAME_MAPPINGS = { @@ -2171,6 +2194,7 @@ NODE_DISPLAY_NAME_MAPPINGS = { # _for_testing "VAEDecodeTiled": "VAE Decode (Tiled)", "VAEEncodeTiled": "VAE Encode (Tiled)", + "TestCurveWidget": "Test Curve Widget", } EXTENSION_WEB_DIRS = {}