mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Update example node
This commit is contained in:
parent
4102ff1951
commit
e568474e29
@ -19,6 +19,8 @@ class Example:
|
|||||||
If this node is an output node that outputs a result/image from the graph. The SaveImage node is an example.
|
If this node is an output node that outputs a result/image from the graph. The SaveImage node is an example.
|
||||||
The backend iterates on these output nodes and tries to execute all their parents if their parent graph is properly connected.
|
The backend iterates on these output nodes and tries to execute all their parents if their parent graph is properly connected.
|
||||||
Assumed to be False if not present.
|
Assumed to be False if not present.
|
||||||
|
DISPLAY_NAME (`str`):
|
||||||
|
A friendly/humanly readable title for the node.
|
||||||
CATEGORY (`str`):
|
CATEGORY (`str`):
|
||||||
The category the node should appear in the UI.
|
The category the node should appear in the UI.
|
||||||
execute(s) -> tuple || None:
|
execute(s) -> tuple || None:
|
||||||
@ -76,6 +78,7 @@ class Example:
|
|||||||
|
|
||||||
#OUTPUT_NODE = False
|
#OUTPUT_NODE = False
|
||||||
|
|
||||||
|
DISPLAY_NAME = "Example Node"
|
||||||
CATEGORY = "Example"
|
CATEGORY = "Example"
|
||||||
|
|
||||||
def test(self, image, string_field, int_field, float_field, print_to_screen):
|
def test(self, image, string_field, int_field, float_field, print_to_screen):
|
||||||
@ -97,6 +100,7 @@ NODE_CLASS_MAPPINGS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# A dictionary that contains the friendly/humanly readable titles for the nodes
|
# A dictionary that contains the friendly/humanly readable titles for the nodes
|
||||||
|
# NOTE: This is the same as using the DISPLAY_NAME property
|
||||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||||
"Example": "Example Node"
|
"Example": "Example Node"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user