Skip to main content
Glama
builder.py1.02 kB
# chuk-motion/src/chuk_motion/components/content/DemoBox/builder.py """DemoBox composition builder method.""" from typing import TYPE_CHECKING if TYPE_CHECKING: from ....generator.composition_builder import CompositionBuilder def add_to_composition( builder: "CompositionBuilder", label: str, start_time: float, color: str = "primary", duration: float = 5.0, ) -> "CompositionBuilder": """Add DemoBox to the composition.""" from ....generator.composition_builder import ComponentInstance start_frame = builder.seconds_to_frames(start_time) duration_frames = builder.seconds_to_frames(duration) component = ComponentInstance( component_type="DemoBox", start_frame=start_frame, duration_frames=duration_frames, props={ "label": label, "color": color, "start_time": start_time, "duration": duration, }, layer=0, ) builder.components.append(component) return builder

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-remotion'

If you have feedback or need assistance with the MCP directory API, please join our Discord server