Allow ten timeline sections
This commit is contained in:
@@ -11592,7 +11592,7 @@ app.registerExtension({
|
|||||||
const sections = [];
|
const sections = [];
|
||||||
let duration = 0;
|
let duration = 0;
|
||||||
if (sectionSetNode && setClass === "TimelineSectionSetCS") {
|
if (sectionSetNode && setClass === "TimelineSectionSetCS") {
|
||||||
for (let i = 1; i <= 5; i++) {
|
for (let i = 1; i <= 10; i++) {
|
||||||
const sectionNode = self._findLinkedOriginNode(sectionSetNode, `section_${i}`);
|
const sectionNode = self._findLinkedOriginNode(sectionSetNode, `section_${i}`);
|
||||||
const sectionClass = sectionNode?.comfyClass || sectionNode?.type || "";
|
const sectionClass = sectionNode?.comfyClass || sectionNode?.type || "";
|
||||||
if (!sectionNode || sectionClass !== "TimelineSectionCS") continue;
|
if (!sectionNode || sectionClass !== "TimelineSectionCS") continue;
|
||||||
|
|||||||
@@ -56,13 +56,18 @@ class TimelineSectionSet(io.ComfyNode):
|
|||||||
node_id="TimelineSectionSetCS",
|
node_id="TimelineSectionSetCS",
|
||||||
display_name="Timeline Section Set DUMAS",
|
display_name="Timeline Section Set DUMAS",
|
||||||
category="WhatDreamsCost DUMAS",
|
category="WhatDreamsCost DUMAS",
|
||||||
description="Bundles up to five Timeline Section nodes into one reusable section set.",
|
description="Bundles up to ten Timeline Section nodes into one reusable section set.",
|
||||||
inputs=[
|
inputs=[
|
||||||
TimelineSectionData.Input("section_1", optional=True),
|
TimelineSectionData.Input("section_1", optional=True),
|
||||||
TimelineSectionData.Input("section_2", optional=True),
|
TimelineSectionData.Input("section_2", optional=True),
|
||||||
TimelineSectionData.Input("section_3", optional=True),
|
TimelineSectionData.Input("section_3", optional=True),
|
||||||
TimelineSectionData.Input("section_4", optional=True),
|
TimelineSectionData.Input("section_4", optional=True),
|
||||||
TimelineSectionData.Input("section_5", optional=True),
|
TimelineSectionData.Input("section_5", optional=True),
|
||||||
|
TimelineSectionData.Input("section_6", optional=True),
|
||||||
|
TimelineSectionData.Input("section_7", optional=True),
|
||||||
|
TimelineSectionData.Input("section_8", optional=True),
|
||||||
|
TimelineSectionData.Input("section_9", optional=True),
|
||||||
|
TimelineSectionData.Input("section_10", optional=True),
|
||||||
],
|
],
|
||||||
outputs=[
|
outputs=[
|
||||||
TimelineSectionSetData.Output(display_name="section_set"),
|
TimelineSectionSetData.Output(display_name="section_set"),
|
||||||
@@ -77,9 +82,25 @@ class TimelineSectionSet(io.ComfyNode):
|
|||||||
section_3=None,
|
section_3=None,
|
||||||
section_4=None,
|
section_4=None,
|
||||||
section_5=None,
|
section_5=None,
|
||||||
|
section_6=None,
|
||||||
|
section_7=None,
|
||||||
|
section_8=None,
|
||||||
|
section_9=None,
|
||||||
|
section_10=None,
|
||||||
) -> io.NodeOutput:
|
) -> io.NodeOutput:
|
||||||
sections = []
|
sections = []
|
||||||
for item in (section_1, section_2, section_3, section_4, section_5):
|
for item in (
|
||||||
|
section_1,
|
||||||
|
section_2,
|
||||||
|
section_3,
|
||||||
|
section_4,
|
||||||
|
section_5,
|
||||||
|
section_6,
|
||||||
|
section_7,
|
||||||
|
section_8,
|
||||||
|
section_9,
|
||||||
|
section_10,
|
||||||
|
):
|
||||||
if not item:
|
if not item:
|
||||||
continue
|
continue
|
||||||
text = (item.get("text") or "").strip()
|
text = (item.get("text") or "").strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user