Accept section sets directly in director

This commit is contained in:
OpenClaw Agent
2026-07-20 09:24:16 +00:00
parent e01ceef71b
commit e113472c7d
2 changed files with 30 additions and 11 deletions

View File

@@ -11550,6 +11550,10 @@ app.registerExtension({
self.removeInput(idx);
}
}
const timelineIdx = self.inputs.findIndex(i => i?.name === "timeline");
if (timelineIdx !== -1 && self.inputs[timelineIdx]?.link == null) {
self.removeInput(timelineIdx);
}
};
this._resolveNodeLinkedValue = function (targetNode, inputName, options = {}) {
const originNode = self._findLinkedOriginNode(targetNode, inputName);
@@ -11583,14 +11587,18 @@ app.registerExtension({
return { imageFile, imageB64: imageUrl };
};
this._buildExternalTimelinePayload = function () {
const timelineNode = self._findLinkedOriginNode(self, "timeline");
const comfyClass = timelineNode?.comfyClass || timelineNode?.type || "";
if (!timelineNode || comfyClass !== "TimelineCS") {
return null;
let sectionSetNode = self._findLinkedOriginNode(self, "section_set");
let setClass = sectionSetNode?.comfyClass || sectionSetNode?.type || "";
if (!sectionSetNode || setClass !== "TimelineSectionSetCS") {
const timelineNode = self._findLinkedOriginNode(self, "timeline");
const comfyClass = timelineNode?.comfyClass || timelineNode?.type || "";
if (!timelineNode || comfyClass !== "TimelineCS") {
return null;
}
sectionSetNode = self._findLinkedOriginNode(timelineNode, "section_set");
setClass = sectionSetNode?.comfyClass || sectionSetNode?.type || "";
}
const sectionSetNode = self._findLinkedOriginNode(timelineNode, "section_set");
const setClass = sectionSetNode?.comfyClass || sectionSetNode?.type || "";
const sections = [];
let duration = 0;
if (sectionSetNode && setClass === "TimelineSectionSetCS") {