Files
CoreyCorza-ComfyUI-CRZnodes/string_node.py
T
2025-09-05 18:50:35 +10:00

25 lines
525 B
Python

class CRZStringNode:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {},
"hidden": {"text": ("STRING", {"default": "", "multiline": False})}
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("text",)
FUNCTION = "main"
CATEGORY = "CRZ"
def main(self, **kwargs):
text = kwargs.get("text", "")
return (text,)
NODE_CLASS_MAPPINGS = {
"CRZStringNode": CRZStringNode
}
NODE_DISPLAY_NAME_MAPPINGS = {
"CRZStringNode": "CRZ String"
}