mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-22 05:02:10 -03:00
22 lines
555 B
Python
22 lines
555 B
Python
import logging
|
|
class WriteTextInConsole:
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {
|
|
"required": {
|
|
"text": ("STRING", {"multiline": True}),
|
|
}
|
|
}
|
|
|
|
# INPUT_IS_LIST = True
|
|
RETURN_TYPES = ("STRING",)
|
|
RETURN_NAMES = ("text",)
|
|
FUNCTION = "write_text_in_console"
|
|
OUTPUT_NODE = True
|
|
OUTPUT_IS_LIST = (False,)
|
|
CATEGORY = "Bjornulf"
|
|
|
|
def write_text_in_console(self, text):
|
|
logging.info(f"Text: {text}")
|
|
return {"ui": {"text": text}, "result": (text,)}
|