mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-06 22:51:18 +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:
|
||||
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):
|
||||
@override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user