mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 12:42:11 -03:00
20 lines
471 B
Python
20 lines
471 B
Python
class WriteText:
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {
|
|
"required": {
|
|
"text": ("STRING", {"multiline": True}),
|
|
}
|
|
}
|
|
|
|
# INPUT_IS_LIST = True
|
|
RETURN_TYPES = ("STRING",)
|
|
RETURN_NAMES = ("text",)
|
|
FUNCTION = "write_text"
|
|
OUTPUT_NODE = True
|
|
OUTPUT_IS_LIST = (False,)
|
|
CATEGORY = "Bjornulf"
|
|
|
|
def write_text(self, text):
|
|
return {"ui": {"text": text}, "result": (text,)}
|