programextensions/blender/demos/cubes.xtl

Blender, 2: how big is a thousand? One cube, a hundred, a thousand, side by side -- xkcd style -- rendered by Blender from a script X_eTaL writes: every cube's corners and faces are X_eTaL arrays, written into the script as numbers (Bpy.xtl, Sizes.xtl). The camera goes once round them; the video loops. Blender also writes the scene as files to open elsewhere: sizes.glb (glTF), sizes.obj and sizes.blend. Run: just demo blender cubes (about a minute or two: 240 frames)

source · imports bl: extensions/blender/lib/Blender.xtl; bp: extensions/blender/lib/Bpy.xtl; sz: extensions/blender/demos/Sizes.xtl

script : Char

value · line 13
script ← ((640, 360, 240) ˢᶻs̲cene 0) c̲at ᵇᵖv̲ideo "orbit.mp4"
Used in: _

_ : Int

function · line 14
_ ← "work/cubes/run.py" ᵇˡw̲rite! ᵇᵖlauncher

_ : Int

function · line 15
_ ← "work/cubes/scene.py" ᵇˡw̲rite! script

r : Char

value · line 17
r ← "work/cubes/run.py" ᵇˡr̲un! "work/cubes/scene.py work/cubes/out"
Used in: lines

lines : Box Char

value · line 19
lines ← (n̲ot r = f̲irst "\n") p̲artition r