Skip to main content.
  1. Inkscape SVG-import (update)
    1. Background
    2. What is a path?
    3. Usage
    4. SVG
    5. Download (.py and .svg )

Inkscape SVG-import (update)

CHANGELOG:
3.6.2007

top

Background

SVG-import didn't work well in earlier versions of Blender (< 2.43). I needed a working solution for importing architectural floor plans so I wrote this script.

Current svg-importer in 2.45 seems to work quite well. So you probably won't need this script.

However, if you have complex floor plan or svg-file with lot of text, you may want to try this script. It is fast and because it separates paths, the result is easier to edit. Or if you want to do something of your own with SVG-import, you may want to check this out. It is a quite clean SAX-parser to start with.

top

What is a path?

In SVG a path is a group of curves. This means that you can control which curves belong together. You can combine several curves as a single path in Inkscape with Combine-action (Ctrl+K). Note that grouping is totally different thing.

If you look the picture below, you'll see the difference when SVG is imported to Blender. The same file is imported twice (two stars with rounded rectangles). When the star shape is combined with rounded rectangle around it, it forms a one separate object (on the right). If file is simple, this really doesn't matter but in complex files this makes editing much more easier and faster (for example, try to edit the test SVG-file imported with current Blender-script).

paths

Imported test file after extrusion (look download). I added the colours to illustrate different paths.

Inkscape file imported 
and 
extruded

Here is a real life example of imported file. There was no need to modify curves. I just converted it to mesh and applied extrusion.

top

Usage

You need a full Python installation.

top

SVG

Few notes:

More information of paths in svg can be found here: http://www.w3.org/TR/SVG11/paths.html.

top

Download (.py and .svg )

Download the script from here: inkscape2curve_012.py

Here is a little test file I use for testing:

Download: inkscape_blender_test_file.svg