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

@@ -33,7 +33,7 @@ from .prompt_relay import (
from .patches import detect_model_type, apply_patches
from .msr_character import MSRCharacterSetData
from .timeline_nodes import TimelineData, TimelineSectionSetData
from .timeline_nodes import TimelineSectionSetData
log = logging.getLogger(__name__)
@@ -205,7 +205,7 @@ def _build_runtime_timeline_payload(external_timeline, frame_rate: float) -> tup
segment_lengths.append(str(section_frames))
current_start += section_frames
duration_seconds = max(0.1, float(total_duration_seconds or external_timeline.get("duration") or 0.0))
duration_seconds = max(0.1, float(total_duration_seconds or 0.0))
duration_frames = max(1, int(round(duration_seconds * frame_rate)))
return tdata, " | ".join(local_prompts), ",".join(segment_lengths), duration_seconds, duration_frames
@@ -2049,11 +2049,6 @@ class LTXDirector(io.ComfyNode):
optional=True,
tooltip="Optional external Timeline Section Set DUMAS payload. When connected, it populates the main timeline track and derives the duration from the sections.",
),
TimelineData.Input(
"timeline",
optional=True,
tooltip="Legacy external Timeline DUMAS payload kept for backward compatibility with older workflows.",
),
io.Float.Input(
"start", force_input=True, optional=True, default=0.0,
tooltip="Automation (connection-only). Start time in SECONDS. Overrides the panel Start when connected.",
@@ -2089,7 +2084,7 @@ class LTXDirector(io.ComfyNode):
custom_width=768, custom_height=512, resize_method="maintain aspect ratio",
divisible_by=32, img_compression=0, audio_vae=None, optional_latent=None,
use_custom_audio=False, inpaint_audio=True, use_custom_motion=True, override_audio=False,
vae=None, reference_strength=1.0, character_set=None, section_set=None, timeline=None,
vae=None, reference_strength=1.0, character_set=None, section_set=None,
start=None, end=None, duration=None) -> io.NodeOutput:
input_dir = folder_paths.get_input_directory()
image_cache = {}
@@ -2106,15 +2101,9 @@ class LTXDirector(io.ComfyNode):
processed_image_cache[cache_key] = processed
return processed
external_timeline_source = None
if section_set is not None:
external_timeline_source = {"sections": list((section_set or {}).get("sections") or [])}
elif timeline is not None:
external_timeline_source = timeline
if external_timeline_source is not None:
external_tdata, external_local_prompts, external_segment_lengths, external_duration_seconds, external_duration_frames = _build_runtime_timeline_payload(
external_timeline_source,
{"sections": list((section_set or {}).get("sections") or [])},
float(frame_rate) if frame_rate else 24.0,
)
try: