Skip to content

Commit

Permalink
added descriptions for nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekPet committed Sep 1, 2024
1 parent d2e026b commit fce9277
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions ArgosTranslateNode/argos_translate_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def INPUT_TYPES(self):
"STRING",
)
FUNCTION = "argos_translate_text"
DESCRIPTION = "This is a node that translates the prompt into another language using Argos Translate."
CATEGORY = "AlekPet Nodes/conditioning"

def argos_translate_text(self, from_translate, to_translate, text, clip):
Expand Down
1 change: 1 addition & 0 deletions DeepTranslatorNode/deep_translator_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ def INPUT_TYPES(self):
"STRING",
)
OUTPUT_NODE = True
DESCRIPTION = "This is a node that translates the hint text into another language using various services included in Deep Translator."
FUNCTION = "deep_translate_text"

CATEGORY = "AlekPet Nodes/conditioning"
Expand Down
3 changes: 3 additions & 0 deletions ExtrasNode/extras_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def INPUT_TYPES(s):

RETURN_TYPES = ("STRING",)
OUTPUT_NODE = True
DESCRIPTION = "The node displays the input text."
FUNCTION = "preview_text"

CATEGORY = "AlekPet Nodes/extras"
Expand Down Expand Up @@ -59,6 +60,7 @@ def INPUT_TYPES(cls):
"string_hue_norm",
)
FUNCTION = "to_hue"
DESCRIPTION = "The node convert HEX color to HUE."
CATEGORY = "AlekPet Nodes/extras"

def to_hue(self, color_hex, unique_id):
Expand Down Expand Up @@ -112,6 +114,7 @@ def INPUT_TYPES(cls):

RETURN_TYPES = ("IMAGE",)
FUNCTION = "correct"
DESCRIPTION = "Node for correcting image colors."
CATEGORY = "AlekPet Nodes/extras"

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions GoogleTranslateNode/google_translate_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def INPUT_TYPES(self):
"STRING",
)
FUNCTION = "translate_text"
DESCRIPTION = "This is a node that translates the prompt into another language using Google Translate."
CATEGORY = "AlekPet Nodes/conditioning"

def translate_text(self, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion IDENode/ide_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def runCode():
RETURN_TYPES = ByPassTypeTuple((PY_CODE,))
RETURN_NAMES = ("result{ANY}",)
FUNCTION = "exec_py"

DESCRIPTION = "IDE Node is an node that allows you to run code written in Python or Javascript directly in the node."
CATEGORY = "AlekPet Nodes/experiments"

def exec_py(self, pycode, language, unique_id, extra_pnginfo, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion PainterNode/painter_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def INPUT_TYPES(self):

RETURN_TYPES = ("IMAGE", "MASK")
FUNCTION = "painter_execute"

DESCRIPTION = "PainterNode allows you to draw in the node window, for later use in the ControlNet or in any other node."
CATEGORY = "AlekPet Nodes/image"

def painter_execute(self, image, unique_id, update_node=True, images=None):
Expand Down
2 changes: 1 addition & 1 deletion PoseNode/pose_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def INPUT_TYPES(self):

RETURN_TYPES = ("IMAGE",)
FUNCTION = "output_pose"

DESCRIPTION = "PoseNode allows you to set a pose for subsequent use in ControlNet."
CATEGORY = "AlekPet Nodes/image"

def output_pose(self, image):
Expand Down

0 comments on commit fce9277

Please sign in to comment.