Files
CYBERLOOM-INC-ComfyUI-nodes…/text.py
T
2023-03-30 02:09:15 +09:00

21 lines
430 B
Python

class Text:
@classmethod
def INPUT_TYPES(cls):
return {
'required': {
'text': ('STRING', {
'multiline': True,
})
}
}
RETURN_TYPES = ('TEXT',) # currently no widgets can receive 'STRING' inputs...
FUNCTION = 'execute'
CATEGORY = 'value'
def execute(self, text: str):
return (text,)