28 lines
981 B
Python
28 lines
981 B
Python
from comfy_api.latest import io, ComfyNode
|
|
|
|
class LTXVTimelineEditor(ComfyNode):
|
|
@classmethod
|
|
def define_schema(cls) -> io.Schema:
|
|
return io.Schema(
|
|
node_id="LTXVTimelineEditor",
|
|
display_name="💜 LTXV Timeline Editor",
|
|
category="ErosDiffusion/LTXV",
|
|
description="Visual editor for constructing Scene Extender scripts.",
|
|
inputs=[
|
|
io.String.Input(
|
|
"script",
|
|
default="(2.0s: \"Example Prompt\" { 0.0s: $0:1.0 })",
|
|
multiline=True,
|
|
display_mode=io.StringDisplay.textarea,
|
|
tooltip="The generated script string. Use the Custom UI to edit this."
|
|
)
|
|
],
|
|
outputs=[
|
|
io.String.Output(display_name="script_string")
|
|
]
|
|
)
|
|
|
|
@classmethod
|
|
def execute(cls, script: str) -> io.NodeOutput:
|
|
return io.NodeOutput(script)
|