The previous note was about replacing FLEX’s exercise videos with one 3D figure. The obvious question is where 1,348 animations come from when there’s one person making them.
The answer is that I didn’t animate 1,348 things. I built a tool first.
205 base movements
The figure editor holds 205 base movements, grouped the way a gym is: barbell, dumbbell and kettlebell, machines and cables, bodyweight, core and floor, stretches and mobility, and a few more.
Every entry in the exercise catalog maps onto one of those base movements, along with its equipment and its tempo. Of the 1,348 catalog entries, 1,338 match a base movement exactly. The other 10 are marked as approximate, which gives me an honest list of what to come back to.
What it does
You open it straight from disk. There’s no build step and no server. Pick a movement and the figure plays it. You can scrub through the rep by hand, show the muscles it works, turn the camera, switch to a gym scene, and search the catalog to see which base movement any exercise uses.
One source of truth
The editor isn’t a mock-up of the app’s figure. It is the figure. A build script, npm run figure:engine, lifts the editor’s engine and renderer into the app as a generated module, with a few checked patches so it draws into any canvas with a transparent background. If the editor changes in a way the script doesn’t expect, it fails loudly instead of shipping something half-right.
A second script, npm run figure:posters, renders a still for every exercise from the same engine. And the test suite fails if the app’s copy of the engine is out of date, or if any exercise is missing its figure or its still. So the editor, the live figure and the stills can’t drift apart.
Was it worth it?
Writing tools for yourself can feel like a detour from the actual product. For a catalog this size, it was the only way the figure was going to happen at all, and it’s the reason fixing a movement is now a few minutes of work instead of a reshoot.