SVG to OBJ Converter (Blender)

I think this would be useful to more than myself. I needed a way to take 2D vectors and turn them into Wavefront OBJ files. So I found a convenient pathway to do so using Blender.

I make my SVG files by creating a vector in Illustrator. Make sure you expand your lines, and remove any white fill that may be present. It’s also a good idea to combine your overlapping vectors into a single shape when possible. Then group your shape together, and put it in the Asset Export. Export to SVG.

Here is a Python script for Blender. It works by iterating through the contents of an ‘SVG’ folder on your Desktop (conveniently where Illustrator exports assets), and exporting them as OBJ files.

The script itself has instructions in how to load it and run in Blender. This should be helpful if you haven’t used scripting in Blender before. I certainly need to re-read it most times I use it.

http://www.kevinschlei.com/code/blender/batch_import_svg_export_obj.py