ash green

Work · Experiment

Flat to film.

My explainer tool is quick, but it draws on a flat canvas. Connecting it to Blender, with Claude Code driving both, turns the same lesson into a film. Here it is with Code to Video.

Connected tools

Blender is a 3D tool with Python built in, so code can drive it. Claude Code writes that Python: it builds the set, places the camera, times each beat and renders. I never place anything by hand, and I never open Blender to make a change.

The tools share the rules. The words live in a beats file, and before anything is built the script checks them against the same limits as the flat tool: 36 characters a line, 30 for a heading, and enough time on screen to read every word. The sound is made by code too. The build writes out a list of events, and a small synth turns it into the soundtrack.

So the lesson stays the same. Blender changes how it looks, not what it teaches.

Code to Video, as a film

Code to Video explains how a story file becomes a clip. The flat version describes each step. The Blender film shows each one happening.

74 seconds, nine beats. A story file rides the green progress line through four machines. Lines of words drop onto it. It slides through a gauge 36 characters wide until one line jams, the line is cut and the file goes through again. A stamp makes one still per beat, the frames and sound pile up, and three doors show the same words in three looks.
Read what the film says
  1. Code to Video. How a story file becomes a clip.
  2. Four steps, no timeline. Write, check, look, render. One story file goes in.
  3. Write: say it as data. A title, some beats, the words. No colours. No timings.
  4. Check: catch it early. Every line must fit the screen. 36 characters, no more.
  5. Too long? Fix the words. This line has 39 characters. Cut it to 32. Check again.
  6. Stills: look first. One picture for each beat. Eyes catch what a check can't.
  7. Render: code draws it. Every frame and every sound. Then one MP4.
  8. One story, many looks. Same words, three styles. The look is chosen at render.
  9. Write the story. Let code draw it. Change the words, not the timeline.

What Blender adds

A second camera plan

The same board can be shot another way. This cut opens each beat almost level with the page, so the heading rises into the lens as dark shapes before it reads as words. Then the camera pulls slowly back and round, like a launch film for a new phone.

The advert cut. A low sun throws long shadows, and the beats change on a hard cut.

The two suit different jobs. The advert cut hides the words for the first second or so of each beat. That builds interest, but it costs reading time. I'd use it for a trailer and keep the film for the lesson itself.

The cost

Light, shadow and focus take far longer to draw. The flat brand style renders in 26 seconds. The Code to Video film took about 35 minutes on my PC. So I check every beat as a still first, and only render the whole film once the stills look right.

What's next

Each film reads its own beats file for now. Next, one story file should be drawn flat for a quick draft, or in Blender for the finished film, without changing a word.