Files
HaydenReeve-ComfyUI-Better-…/__init__.py
T
Hayden Reeve 80b4a86678 Fix missing FUNCTION in Better String Node
While it works in some cases, other cases need this little stubby thing here.

This will stop errors when feeding into nodes such as Save Image.
2024-02-05 23:48:29 +08:00

29 lines
505 B
Python

class BetterString:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"string": ("STRING", {"multiline": True}),
},
}
FUNCTION = "event"
RETURN_TYPES = ("STRING",)
CATEGORY = "Better Things 💡"
def event(self, string):
return (string, )
NODE_CLASS_MAPPINGS = {
"BetterString": BetterString
}
NODE_DISPLAY_NAME_MAPPINGS = {
"BetterString": "Better String"
}