Video Editor
Code window
The Code window shows the code files your project uses and edits them in a code editor: the pages your HTML scenes play, the stylesheets and scripts they share, and their drawings, including the files of the playbook the project is made from. Saving a file redraws every clip that plays it.
Open it from Window › Code. It docks, floats and joins workspaces like any other window.
What is in it
| Part | What it does |
|---|---|
| File tree (left) | Every code file the project uses, in its folders (scenes, shared, components…). A file of the project's playbook is marked playbook (or preset, or kit for the built-in files: kit.js, the built-in look drawing.md, its drawings in library, the shot example references/world.html); the project's own copy of one is marked own copy. Press a file to open it, a folder to fold it. |
| New file | Type a path (/scenes/name.html) and press +. Folders in the path are made for you. |
| Find in files | Type two letters or more: the list becomes every line, in every file, that holds the text (the first 100). Press one to open the file on that line. Clear the box to get the file list back. |
| Tabs | The files you have open. × closes a tab; the file stays. A coloured dot marks the file the AI last wrote. |
| Editor | The editor of VS Code: colours, completion, find and replace, folding, its own undo per file. It follows your Preferences › Code editor (font size, tab size, word wrap, line numbers, minimap and the rest). |
| Save | Writes the file (also Ctrl / ⌘ S). The file is tidied on save, the same way whoever wrote it. A playbook's file shows a bar above it: Save for this video only (the default: the project keeps its own copy, the playbook stays) or Save for every video (the playbook changes, for every video made from it; needs Manage playbooks). A preset's file or the kit saves as this video's own copy. |
| History (clock icon) | Every saved change to this file, newest first, with who made it (you or a teammate, or the AI); a playbook's file shows its changes from every video. Restore puts the file back as that change left it. |
| Trash icon | Moves the file to the Drive's trash. |
| Export zip / Import (under the tree) | Export zip downloads every file the project uses: its own folder and its playbook's files (the project's own copy where it has one), code and media, folders kept. Import takes a zip (everything lands at its place; a code file already there is replaced and its earlier text stays in History; media joins the Media bin) or one file (a .riv, a .json, a picture). What is neither code nor media is left out and named. At most 200 MB. |
| Problems (bottom bar, for a scene's page) | Errors and warnings in the page: every inline script checked as JavaScript, and the scene's rules (no window.render, timers, network outside the public CDNs, Math.random). Press the counter to show or hide the list; press a problem to go to its line. |
| Format, Revert | Format tidies the file; Revert drops what you have not saved. |
| Recently deleted (under the file list) | Files deleted in the last 30 days. Restore brings one back as it was and opens it. |
File kinds: html, css, js, mjs, json, svg, md, txt and riv, up to 1 MB each.
When someone else changes the file
- If you have not typed anything, the editor shows the new text by itself, scrolls to it and tints the changed lines for a few seconds.
- If you have unsaved changes, they are kept and a bar appears: This file was changed (by a teammate or the AI) while you were editing.
| Button | What it does |
|---|---|
| Compare | Shows their text beside yours. |
| Take theirs | Drops your changes and shows their text. |
| Keep mine | Saves your text over theirs. Their version stays in History. |
Restore and undo
- Restore in History never destroys anything: the restored text is saved as a new change, so you can go back again.
- Restoring a version of the project (or undoing the AI's work) also puts the code files back as they were then: a file made since goes to the trash, a changed or deleted one gets its text back.
- A deleted file is in the Drive's trash for 30 days. Restoring it there brings it back at the same place and its clips play again.
Lottie animations
A scene can play a Lottie animation (the JSON exported from After Effects): keep the JSON as a project file (/lottie/name.json), and the page shows the right frame of it for each frame of the video. Ask the AI for it, or see the lottie skill it uses.
Rive animations
A scene can play a Rive file (.riv, made in the Rive editor). Bring it in with Import (it lands at /rive/name.riv), and a scene shows the right moment of it for each frame of the video. It is the one binary kind among the code files: the editor shows its size, not its content. Ask the AI to build the scene for it (it uses the rive skill).
3D scenes
A scene that draws with WebGL (three.js, or a canvas asked for a WebGL context) is a plan feature, because its frames take longer to export. Without it, saving such a file answers 3D scenes (three.js) are not in this workspace's plan, for you and for the AI alike. Scenes drawn with HTML, CSS, SVG or a 2D canvas are on every plan. A plan with 3D also sets how many such files one project may hold; one more answers Your plan allows N 3D scene files in a project.
FAQ
Does undo in the timeline undo a code change?
No. Code has its own undo inside the editor, and its own history per file. The timeline's undo covers the timeline.
Can two people edit the same file at once?
Yes, but not live in the same text. The second save is not allowed to overwrite the first silently: you get Compare, Take theirs and Keep mine.
Why did my code's layout change when I saved?
Every save is tidied the same way, so the AI's exact-match edits and yours keep finding the same lines.