Skip to the content

Scene

Code

Up to 14 lines of code, written in or read straight from a file in the run, with one highlighted range per phrase after the first and the other lines dimmed. Lines starting + or - show as a diff.

When to use it

The few lines that make it work, or the diff that adds the feature.

Use it

  1. Ask Claude for it in words (“use the code scene”), or add it to story.json yourself:

    "type": "code"
  2. Claude rebuilds the video. Only the lines that changed are voiced again.

  3. It checks a contact sheet of every scene before rendering the cuts.

Reveals, one per phrase

  1. The window rises and the lines print
  2. Each highlight in turn

Props: code* or file with lines, highlights, title, caption (* required)

Good to know

  • Give file and lines to read a real file from the run instead of pasting code.
  • Highlights use the file’s own line numbers, one range per phrase after the first.
  • The window’s title is the file name by default.
Read Scenes and templates in the guide