Remove legacy timeline adapter node

This commit is contained in:
OpenClaw Agent
2026-07-20 09:27:35 +00:00
parent e113472c7d
commit 64cbfd2f36
4 changed files with 6 additions and 64 deletions

View File

@@ -5,9 +5,6 @@ from comfy_api.latest import io
TimelineSectionData = io.Custom("TIMELINE_SECTION")
TimelineSectionSetData = io.Custom("TIMELINE_SECTION_SET")
TimelineData = io.Custom("TIMELINE")
class TimelineSection(io.ComfyNode):
@classmethod
def define_schema(cls):
@@ -97,34 +94,3 @@ class TimelineSectionSet(io.ComfyNode):
)
return io.NodeOutput({"sections": sections})
class Timeline(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="TimelineCS",
display_name="Timeline DUMAS",
category="WhatDreamsCost DUMAS",
description="Builds an external timeline payload for LTX Director from a section set, deriving the total duration from the sections.",
inputs=[
TimelineSectionSetData.Input(
"section_set",
optional=True,
tooltip="Optional section set. When omitted, the timeline payload contains no sections.",
),
],
outputs=[
TimelineData.Output(display_name="timeline"),
],
)
@classmethod
def execute(cls, section_set=None, duration=None) -> io.NodeOutput:
sections = list((section_set or {}).get("sections") or [])
total_duration = sum(max(0.1, float(item.get("duration") or 0.0)) for item in sections)
payload = {
"duration": max(0.1, float(total_duration or 0.0)),
"sections": sections,
}
return io.NodeOutput(payload)