Files
pythongosssss-ComfyUI-Custo…/show-text/show_text.py
T
2023-03-30 19:37:05 +01:00

20 lines
399 B
Python

class ShowText:
@classmethod
def INPUT_TYPES(s):
return {"required": {
"text": ("STRING", {"forceInput": True}),
}}
RETURN_TYPES = ("STRING",)
FUNCTION = "notify"
OUTPUT_NODE = True
CATEGORY = "utils"
def notify(self, text):
return {"ui": { "text": text }, "result": (text,)}
NODE_CLASS_MAPPINGS = {
"ShowText": ShowText,
}