add workflow

This commit is contained in:
Sirshendu Ganguly
2026-01-29 21:57:48 -05:00
parent ff6b7d8ad4
commit 11fc63d4f6
5 changed files with 60 additions and 2 deletions
+11 -1
View File
@@ -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}"]}}
+12
View File
@@ -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",