sourceextensions/blender/demos/cubes.xtl

1⍝│ Blender, 2: how big is a thousand? One cube, a hundred, a thousand, 2⍝│ side by side -- xkcd style -- rendered by Blender from a script X_eTaL 3⍝│ writes: every cube's corners and faces are X_eTaL arrays, written into 4⍝│ the script as numbers (Bpy.xtl, Sizes.xtl). The camera goes once 5⍝│ round them; the video loops. Blender also writes the scene as files 6⍝│ to open elsewhere: sizes.glb (glTF), sizes.obj and sizes.blend. 7⍝│ Run: just demo blender cubes (about a minute or two: 240 frames) 8 9"bl:" u̲se< "Blender" 10"bp:" u̲se< "Bpy" 11"sz:" u̲se< "Sizes" 12 13script ← ((640, 360, 240) ˢᶻs̲cene 0) c̲at ᵇᵖv̲ideo "orbit.mp4" 14_ ← "work/cubes/run.py" ᵇˡw̲rite! ᵇᵖlauncher 15_ ← "work/cubes/scene.py" ᵇˡw̲rite! script 16"rendering 240 frames with Blender (EEVEE) ..." 17r ← "work/cubes/run.py" ᵇˡr̲un! "work/cubes/scene.py work/cubes/out" 18"the run, and the error lines in Blender's log:" 19lines ← (n̲ot r = f̲irst "\n") p̲artition r 20d̲isclose 1 s̲elect lines 21d̲isclose 2 s̲elect lines 22"what Blender made:" 23ᵇˡr̲ead "work/cubes/out/report.txt" 24"the files (bytes, path), the video and the 3D files:" 25ᵇˡf̲iles "work/cubes/out"