sourceextensions/blender/demos/cosy.xtl

1⍝│ Blender, 6: the CoSy logo in 3D. C, o, S and y are round tubes, 2⍝│ toothpaste style, melted together where they touch, glossy magenta on 3⍝│ yellow, turned once round; the video loops. Each letter is its center 4⍝│ line, an array of points traced from the logo and placed in meters by 5⍝│ X_eTaL (CosyLogo.xtl); Blender gives each line a round tube and round 6⍝│ ends, fuses them into one mesh and renders it with Cycles. 7⍝│ Link: https://cosy.com CoSy 8⍝│ Link: https://github.com/softwarewrighter/reva-fork reva-fork 9⍝│ Run: just demo blender cosy (several minutes: 120 frames in Cycles) 10 11"bl:" u̲se< "Blender" 12"bp:" u̲se< "Bpy" 13"cy:" u̲se< "CosyLogo" 14 15script ← ((1280, 720, 120, 0.012, 32) ᶜʸs̲cene 0) c̲at ᵇᵖv̲ideo "cosy.mp4" 16_ ← "work/cosy/run.py" ᵇˡw̲rite! ᵇᵖlauncher 17_ ← "work/cosy/scene.py" ᵇˡw̲rite! script 18"rendering 120 frames with Blender (Cycles) ..." 19r ← "work/cosy/run.py" ᵇˡr̲un! "work/cosy/scene.py work/cosy/out" 20"the run, and the error lines in Blender's log:" 21lines ← (n̲ot r = f̲irst "\n") p̲artition r 22d̲isclose 1 s̲elect lines 23d̲isclose 2 s̲elect lines 24"what Blender made:" 25ᵇˡr̲ead "work/cosy/out/report.txt" 26"the files (bytes, path):" 27ᵇˡf̲iles "work/cosy/out"