From d9bef9692a8a2ad55298775fdd43bbb011fba354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20=20Sk=C3=B6ld?= Date: Sun, 4 Aug 2024 14:48:39 +0200 Subject: [PATCH] Move WidgetToString inputs back. --- nodes/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index 7d5b2ce..d65268b 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -711,12 +711,12 @@ class WidgetToString: def INPUT_TYPES(cls): return { "required": { + "id": ("INT", {"default": 0}), "widget_name": ("STRING", {"multiline": False}), "return_all": ("BOOLEAN", {"default": False}), }, "optional": { "any_input": (any, {}), - "id": ("INT", {"default": 0}), "node_title": ("STRING", {"multiline": False}), }, "hidden": {"extra_pnginfo": "EXTRA_PNGINFO", @@ -736,7 +736,7 @@ are manually edited! The 'any_input' is required for making sure the node you want the value from exists in the workflow. """ - def get_widget_value(self, widget_name, extra_pnginfo, prompt, unique_id, return_all=False, any_input=None, id=0, node_title=""): + def get_widget_value(self, id, widget_name, extra_pnginfo, prompt, unique_id, return_all=False, any_input=None, node_title=""): workflow = extra_pnginfo["workflow"] #print(json.dumps(workflow, indent=4)) results = []