Expose sequence chunk metadata outputs
tests / test (push) Canceled after 0s
tests / windows-storage (push) Canceled after 0s

This commit is contained in:
2026-10-15 10:00:40 +00:00
parent dc3ba55b3e
commit 3e0b072730
3 changed files with 18 additions and 9 deletions
+4
View File
@@ -9,6 +9,10 @@ flattened to absolute timeline positions when the node executes, so it can be
connected directly to `Sequence Prompt` with `Prompt Format = Timeline` (or
`Auto`).
The node also outputs the project `chunk_count` as an `INT` and the shared
`chunk_duration` in seconds as a `FLOAT`, so downstream nodes can use the same
project dimensions without duplicating the controls.
All clip tabs use the single `Default chunk duration` control. There is no
per-clip duration because Continuum multi-clip projects are intentionally
uniform; resizing a shot boundary updates its timestamp in the visible prompt
+12 -8
View File
@@ -135,8 +135,8 @@ class DumasH3SequencePromptBuilder:
"the node emits one absolute Timeline prompt for Sequence Prompt."
)
CATEGORY = "DUMAS H3/Prompt"
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("sequence_prompt",)
RETURN_TYPES = ("STRING", "INT", "FLOAT")
RETURN_NAMES = ("sequence_prompt", "chunk_count", "chunk_duration")
FUNCTION = "build"
@classmethod
@@ -159,12 +159,16 @@ class DumasH3SequencePromptBuilder:
clip_count=int(clip_count),
default_seconds=float(default_chunk_seconds),
)
return (format_sequence_prompt(
shared_directive=shared_directive,
sequence=sequence,
soundscape=soundscape,
music=music,
),)
return (
format_sequence_prompt(
shared_directive=shared_directive,
sequence=sequence,
soundscape=soundscape,
music=music,
),
len(sequence["clips"]),
float(default_chunk_seconds),
)
NODE_CLASS_MAPPINGS = {"DumasH3SequencePromptBuilder": DumasH3SequencePromptBuilder}
+2 -1
View File
@@ -63,8 +63,9 @@ def test_normalizer_rejects_invalid_slot_ranges(bad):
def test_node_schema_has_single_string_output_and_serialized_editor_state():
schema = DumasH3SequencePromptBuilder.INPUT_TYPES()["required"]
assert DumasH3SequencePromptBuilder.RETURN_TYPES == ("STRING",)
assert DumasH3SequencePromptBuilder.RETURN_TYPES == ("STRING", "INT", "FLOAT")
assert schema["timeline_json"][1]["multiline"] is True
result = DumasH3SequencePromptBuilder().build(1, 4, "Directive", json.dumps(default_sequence(1, 4)), "N/A", "N/A")
assert result[0].startswith("[0-4s]\nDirective")
assert result[0].count("overall_soundscape:") == 1
assert result[1:] == (1, 4.0)