mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-27 10:52:31 +08:00
Add string output to preview text node.
This commit is contained in:
parent
c16db7fd69
commit
1dcb9e73f5
@ -11,7 +11,7 @@ class PreviewAny():
|
|||||||
"required": {"source": (IO.ANY, {})},
|
"required": {"source": (IO.ANY, {})},
|
||||||
}
|
}
|
||||||
|
|
||||||
RETURN_TYPES = ()
|
RETURN_TYPES = (IO.STRING,)
|
||||||
FUNCTION = "main"
|
FUNCTION = "main"
|
||||||
OUTPUT_NODE = True
|
OUTPUT_NODE = True
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ class PreviewAny():
|
|||||||
except Exception:
|
except Exception:
|
||||||
value = 'source exists, but could not be serialized.'
|
value = 'source exists, but could not be serialized.'
|
||||||
|
|
||||||
return {"ui": {"text": (value,)}}
|
return {"ui": {"text": (value,)}, "results": (value,)}
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
"PreviewAny": PreviewAny,
|
"PreviewAny": PreviewAny,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user