add workflow
This commit is contained in:
+11
-1
@@ -19,7 +19,14 @@ class RunwareSave3D:
|
||||
"default": "ComfyUI",
|
||||
"tooltip": "Prefix for the filename."
|
||||
}),
|
||||
}
|
||||
},
|
||||
"optional": {
|
||||
"filepath": ("STRING", {
|
||||
"placeholder": "Saved file path will appear here after execution.",
|
||||
"tooltip": "This field is automatically populated with the saved file path after save.",
|
||||
}),
|
||||
},
|
||||
"hidden": {"node_id": "UNIQUE_ID"},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
@@ -83,6 +90,9 @@ class RunwareSave3D:
|
||||
|
||||
print(f"[Runware Save 3D] Successfully saved to: {filepath}")
|
||||
|
||||
# Send filepath to UI (like media upload mediaUUID)
|
||||
rwUtils.sendSave3DFilepath(filepath, kwargs.get("node_id"))
|
||||
|
||||
# Return UI info for ComfyUI
|
||||
return {"ui": {"text": [f"Saved: {filename}"]}}
|
||||
|
||||
|
||||
@@ -295,6 +295,18 @@ def sendMediaUUID(mediaUUID, nodeID):
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
def sendSave3DFilepath(filepath, nodeID):
|
||||
PromptServer.instance.send_sync(
|
||||
"runwareSave3DFilepath",
|
||||
{
|
||||
"success": True,
|
||||
"filepath": filepath,
|
||||
"nodeID": nodeID,
|
||||
"widgetName": "filepath",
|
||||
},
|
||||
)
|
||||
|
||||
def sendImageCaption(captionText, nodeID):
|
||||
PromptServer.instance.send_sync(
|
||||
"runwareImageCaption",
|
||||
|
||||
Reference in New Issue
Block a user