mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-07 07:01:46 +08:00
savedResult
This commit is contained in:
parent
cd53aff8d8
commit
949c4b8d07
@ -51,7 +51,14 @@ class SaveTextNode(io.ComfyNode):
|
|||||||
with open(filepath, "w", encoding="utf-8") as f:
|
with open(filepath, "w", encoding="utf-8") as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
|
|
||||||
return io.NodeOutput(ui=ui.PreviewText(text))
|
return io.NodeOutput(
|
||||||
|
ui={
|
||||||
|
"text": (text,),
|
||||||
|
"files": [
|
||||||
|
ui.SavedResult(file, subfolder, io.FolderType.output)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
class TextExtension(ComfyExtension):
|
class TextExtension(ComfyExtension):
|
||||||
@override
|
@override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user