Animate
Scripts
JavaScript that builds and edits your project. Forty staggered words, a grid of cards, one layer per row of data: write it once, run it, change a number, run it again.
Write and run
Open the Scripts panel, make a file and write. Every command is on ac, and the code is the body of an async function, so await works at the top.
const WORDS = ["Design", "in", "motion"];
const { comps } = await ac.doc.overview();
for (const [i, word] of WORDS.entries()) {
const { id } = await ac.layer.create({
kind: "text", text: word, frameId: comps[0].id, y: i * 140,
});
await ac.animation.set({ id, slot: "in", preset: "fade-up", delayMs: i * 120 });
}A script uses the same commands, with the same checks and the same error messages, as the built-in agent. Completions know every command, its options, and your layers, comps and media by name. When a line fails, the error points at it.
Run it again
By default a re-run replaces what the last run made, so editing and running never stacks copies. Switch a file to Append when each run should add. Either way a run is one undo step. Stop ends a script that never finishes without freezing the editor.
Kept with the project
Scripts live in the project, in folders, and save and travel with it. Dock the panel or float it.
With an AI
Brief for AI builds what a chatbot needs to write a script for this project. Pick a focus such as Motion, Type or 3D, or tick the exact sections: craft guides, real preset and effect ids, the commands, your project. Paste its answer, run it, and use Copy for AI to send the result back. The built-in agent and MCP clients can run and save scripts too, doing repetitive work in one call.