Sortie en direct du vrai moteur de rendu — modifiez les réglages et elle se met à jour instantanément.
Trois étapes dessinées
Trois cartes montent en ligne et les connecteurs se tracent entre elles ; en 9:16 elles s'empilent et les connecteurs deviennent verticaux.
Réglages
L'utiliser dans un film
titlestepsPour les développeurs (MCP et JSON)
Voici la scène exacte à envoyer à create_animation (MCP) : gardez la structure, changez les mots et écrivez la narration — c'est la voix qui fixe la durée de la scène. Collez-la dans update_storyboard avec set_data pour modifier un film déjà fait.
{
"visual": "motion",
"heading": "How it works",
"narration": "Write the sentence the voice says over this scene; its length is the scene's.",
"data": {
"motion": {
"spec": {
"version": 1,
"name": "Three-step process",
"intent": "three steps, each one leading to the next",
"stagger": "item",
"exit": "mirror",
"params": [
{
"name": "title",
"type": "text",
"label": "Title",
"default": "From a link to a launch film",
"maxLength": 32
},
{
"name": "steps",
"type": "list",
"items": "record",
"label": "Steps (title, caption)",
"min": 3,
"max": 3,
"default": [
{
"title": "Paste a URL",
"caption": "Any public page"
},
{
"title": "Pick a voice",
"caption": "Twelve languages"
},
{
"title": "Share the film",
"caption": "Captioned, ready"
}
]
}
],
"layers": [
{
"id": "title",
"kind": "text",
"text": "{{title}}",
"role": "display",
"align": "center",
"maxLines": 2,
"box": {
"col": 0,
"row": 0.4,
"cols": 12,
"rows": 3.4
},
"tall": {
"col": 0,
"row": 0,
"cols": 12,
"rows": 3
},
"enter": {
"primitive": "fadeUp"
}
},
{
"id": "card",
"kind": "shape",
"shape": "rect",
"fill": "surface",
"radius": "lg",
"elevation": 2,
"repeat": {
"param": "steps",
"flow": "row",
"gap": "lg"
},
"box": {
"col": 0,
"row": 4.8,
"cols": 12,
"rows": 5.6
},
"tall": {
"col": 0,
"row": 3.4,
"cols": 12,
"rows": 8.2
},
"enter": {
"primitive": "slideIn",
"from": "bottom",
"distance": "rise",
"at": "beat2"
}
},
{
"id": "name",
"kind": "text",
"text": "{{index}}. {{item.title}}",
"role": "title",
"align": "center",
"valign": "start",
"maxLines": 2,
"repeat": {
"param": "steps",
"flow": "row",
"gap": "lg"
},
"box": {
"col": 0,
"row": 5.4,
"cols": 12,
"rows": 2.4
},
"tall": {
"col": 0.4,
"row": 3.7,
"cols": 11.2,
"rows": 8.2
},
"enter": {
"primitive": "fadeUp",
"at": "beat2"
}
},
{
"id": "caption",
"kind": "text",
"text": "{{item.caption}}",
"role": "body",
"color": "sub",
"align": "center",
"valign": "end",
"maxLines": 2,
"repeat": {
"param": "steps",
"flow": "row",
"gap": "lg"
},
"box": {
"col": 0,
"row": 8.1,
"cols": 12,
"rows": 1.9
},
"tall": {
"col": 0.4,
"row": 3.1,
"cols": 11.2,
"rows": 8.2
},
"enter": {
"primitive": "fadeUp",
"at": "beat2"
}
},
{
"id": "link1",
"kind": "shape",
"shape": "line",
"stroke": "c1",
"strokeWidth": "bold",
"box": {
"col": 3.55,
"row": 7.35,
"cols": 0.6,
"rows": 0.5
},
"tall": {
"col": 5.75,
"row": 5.63,
"cols": 0.5,
"rows": 0.7
},
"enter": {
"primitive": "drawOn",
"at": "beat3"
}
},
{
"id": "link2",
"kind": "shape",
"shape": "line",
"stroke": "c1",
"strokeWidth": "bold",
"box": {
"col": 7.85,
"row": 7.35,
"cols": 0.6,
"rows": 0.5
},
"tall": {
"col": 5.75,
"row": 8.67,
"cols": 0.5,
"rows": 0.7
},
"enter": {
"primitive": "drawOn",
"at": "beat3"
}
}
]
},
"name": "Three-step process",
"params": {
"title": "Up and running in three steps",
"steps": [
{
"title": "Install",
"caption": "One line in your terminal"
},
{
"title": "Connect",
"caption": "Your workspace, two clicks"
},
{
"title": "Launch",
"caption": "Live for every user"
}
]
}
}
}
}Réutilisez-la : enregistrez data.motion.spec une fois avec save_motion_spec (vérifiée comme avec validate_motion_spec), puis toute scène peut utiliser le visuel « motion » avec data.motion.specId et ses propres paramètres. Nom de la spec : « Three-step process ».