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
db27b040
Commit
db27b040
authored
May 22, 2023
by
comfyanonymous
Browse files
object_info now returns if node is an output_node or not.
parent
ffc56c53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
server.py
server.py
+5
-0
No files found.
server.py
View file @
db27b040
...
@@ -272,6 +272,11 @@ class PromptServer():
...
@@ -272,6 +272,11 @@ class PromptServer():
info
[
'display_name'
]
=
nodes
.
NODE_DISPLAY_NAME_MAPPINGS
[
node_class
]
if
node_class
in
nodes
.
NODE_DISPLAY_NAME_MAPPINGS
.
keys
()
else
node_class
info
[
'display_name'
]
=
nodes
.
NODE_DISPLAY_NAME_MAPPINGS
[
node_class
]
if
node_class
in
nodes
.
NODE_DISPLAY_NAME_MAPPINGS
.
keys
()
else
node_class
info
[
'description'
]
=
''
info
[
'description'
]
=
''
info
[
'category'
]
=
'sd'
info
[
'category'
]
=
'sd'
if
hasattr
(
obj_class
,
'OUTPUT_NODE'
)
and
obj_class
.
OUTPUT_NODE
==
True
:
info
[
'output_node'
]
=
True
else
:
info
[
'output_node'
]
=
False
if
hasattr
(
obj_class
,
'CATEGORY'
):
if
hasattr
(
obj_class
,
'CATEGORY'
):
info
[
'category'
]
=
obj_class
.
CATEGORY
info
[
'category'
]
=
obj_class
.
CATEGORY
return
info
return
info
...
...
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