With the help of ChatGPT I made a small Blender add-on to export selected path (mesh) vertices to JSON format as a float array.
I’d looked around for something that does exactly this, and also tried just grabbing the vertex data from other ASCII export formats like OBJ, PLY and DAE, but those options were simply not convenient. Also, I don’t think the Babylon.js exporter for Blender works with the latest Blender versions and, if I recall, it only exports meshes that have faces (not path meshes which are only comprised of vertices).
For Blender paths/curves, you’ll need to ensure those are converted to mesh before they can be exported.
Install
Blender > Edit menu > Preferences > Add-ons > Install from Disk …
So I tried to import an SVG into Blender: (elevator icon)
Do you think you and your AI friend could add an option to somehow export this as vertices-islands (each group of vertices in a separate array)? It would be absolutely amazing .
@roland my first attempt to have ChatGPT modify the script, to separate path islands, failed
I’ll try to revisit again when I have a bit more time.
What icon set is that elevator icon from? When I import Lucide icon SVGs they import as separate meshes rather than one joined mesh, so in the case of Lucide, there’s no need to separate.