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
+25
View File
@@ -70,6 +70,30 @@ function mediaUUIDHandler(msgEvent) {
return false;
}
function save3DFilepathHandler(msgEvent) {
const data = msgEvent.detail;
const filepath = data.filepath;
const nodeID = parseInt(data.nodeID);
if(data.success && filepath) {
const node = app.graph.getNodeById(nodeID);
if(node !== null && node !== undefined) {
const filepathWidget = node.widgets.find(widget => widget.name === "filepath");
if(filepathWidget) {
if(filepathWidget.value !== undefined) {
filepathWidget.value = filepath;
}
if(filepathWidget.inputEl) {
filepathWidget.inputEl.value = filepath;
filepathWidget.inputEl.dispatchEvent(new Event('input', { bubbles: true }));
filepathWidget.inputEl.dispatchEvent(new Event('change', { bubbles: true }));
}
}
}
}
return false;
}
function captionNodeHandler(msgEvent) {
const captionData = msgEvent.detail;
const captionText = captionData.captionText;
@@ -3193,6 +3217,7 @@ export {
syncDimensionsNodeHandler,
searchNodeHandler,
mediaUUIDHandler,
save3DFilepathHandler,
captionNodeHandler,
videoTranscriptionHandler,
videoOutputsHandler,