Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
940893f9
Commit
940893f9
authored
Apr 02, 2023
by
comfyanonymous
Browse files
Update the example_node.py.example with RETURN_NAMES.
parent
27fc64ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
custom_nodes/example_node.py.example
custom_nodes/example_node.py.example
+4
-0
No files found.
custom_nodes/example_node.py.example
View file @
940893f9
...
@@ -11,6 +11,8 @@ class Example:
...
@@ -11,6 +11,8 @@ class Example:
----------
----------
RETURN_TYPES (`tuple`):
RETURN_TYPES (`tuple`):
The type of each element in the output tulple.
The type of each element in the output tulple.
RETURN_NAMES (`tuple`):
Optional: The name of each output in the output tulple.
FUNCTION (`str`):
FUNCTION (`str`):
The name of the entry-point method. For example, if `FUNCTION = "execute"` then it will run Example().execute()
The name of the entry-point method. For example, if `FUNCTION = "execute"` then it will run Example().execute()
OUTPUT_NODE ([`bool`]):
OUTPUT_NODE ([`bool`]):
...
@@ -61,6 +63,8 @@ class Example:
...
@@ -61,6 +63,8 @@ class Example:
}
}
RETURN_TYPES = ("IMAGE",)
RETURN_TYPES = ("IMAGE",)
#RETURN_NAMES = ("image_output_name",)
FUNCTION = "test"
FUNCTION = "test"
#OUTPUT_NODE = False
#OUTPUT_NODE = False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment