From ef59c0ed93b5fa5f6a99671d0b699d9e77a00f81 Mon Sep 17 00:00:00 2001 From: "ae(seth)tics" Date: Wed, 27 Aug 2025 12:46:32 -0700 Subject: [PATCH] pushin real mediocre --- nodes/workflow.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/nodes/workflow.py b/nodes/workflow.py index 8be2ec3..8a6e390 100644 --- a/nodes/workflow.py +++ b/nodes/workflow.py @@ -49,19 +49,15 @@ class UtilShowWhatever: return { "required": { "input": ("*",), - }, - "optional": { - "label": ("STRING", {"default": "Value"}), } } - RETURN_TYPES = ("*",) - RETURN_NAMES = ("output",) + RETURN_TYPES = () FUNCTION = "show" CATEGORY = "Utilitools/Workflow" OUTPUT_NODE = True - def show(self, input, label="Value"): + def show(self, input): # Format the value for display if hasattr(input, 'shape'): value_str = f"Tensor{input.shape} dtype={input.dtype}" @@ -78,18 +74,18 @@ class UtilShowWhatever: else: value_str = f"Dict with {len(input)} keys: {list(input.keys())[:5]}..." elif isinstance(input, str): - if len(input) <= 100: + if len(input) <= 200: value_str = f'"{input}"' else: - value_str = f'"{input[:100]}..."' + value_str = f'"{input[:200]}..."' else: value_str = str(input) # Print to console for debugging - print(f"🔍 {label}: {value_str}") + print(f"🔍 Show Whatever: {value_str}") - # Return for UI display - return {"ui": {"text": [f"{label}: {value_str}"]}, "result": (input,)} + # Return for UI display in a text field + return {"ui": {"text": [value_str]}} NODE_CLASS_MAPPINGS = {