diff --git a/__init__.py b/__init__.py index 0a6c510..15b2689 100644 --- a/__init__.py +++ b/__init__.py @@ -8,6 +8,7 @@ from .nodes.display_any import DisplayAny from .nodes.abc_math import AbcMath from .nodes.image_size_extractor import ImageSizeExtractor from .nodes.tencent_translater import TencentTranslater +from .nodes.text import Text NODE_CLASS_MAPPINGS = { "Custom_Save_Image": CustomSaveImage, @@ -18,6 +19,7 @@ NODE_CLASS_MAPPINGS = { "Abc_Math": AbcMath, "Image_Size_Extractor": ImageSizeExtractor, "Tencent_Translater": TencentTranslater, + "Text": Text, } NODE_DISPLAY_NAME_MAPPINGS = { @@ -29,6 +31,7 @@ NODE_DISPLAY_NAME_MAPPINGS = { "Abc_Math": "abc Math", "Image_Size_Extractor": "Image Size Extractor", "Tencent_Translater": "Tencent Translater", + "Text": "Text", } WEB_DIRECTORY = "web" \ No newline at end of file diff --git a/nodes/text.py b/nodes/text.py new file mode 100644 index 0000000..2c677a1 --- /dev/null +++ b/nodes/text.py @@ -0,0 +1,25 @@ +class Text: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "text": ("STRING", { + "multiline": True, + #"default": "text", + "dynamicPrompts": False, + }), + }, + } + + RETURN_TYPES = ("*",) + RETURN_NAMES = ("*",) + FUNCTION = "process_text" + CATEGORY = "KayTool" + #OUTPUT_NODE = True + + def process_text(self, text): + + return (text,) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5569a2f..f04ca8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "kaytool" description ="This is a custom node toolkit that includes a variety of practical nodes, such as a custom prompt preset node, wireless transmission nodes, Tencent and Baidu AI translator nodes, mathematical operation nodes, image size extraction nodes, display-any nodes, color adjustment nodes, and custom image saving nodes, among others." -version = "0.9.3" +version = "0.10.0" license = {file = "LICENSE"} [project.urls] diff --git a/web/appearance.js b/web/appearance.js index aa2ed7c..ef30df8 100644 --- a/web/appearance.js +++ b/web/appearance.js @@ -22,7 +22,8 @@ const NODE_COLORS = { "Color_Adjustment": "pale_blue", "Custom_Save_Image": "black", "Abc_Math": "cyan", - "Image_Size_Extractor": "pale_blue" + "Image_Size_Extractor": "pale_blue", + "Text": "pale_blue" }; function setNodeColors(node, theme) {