6
$\begingroup$

I have a simple cube object with a blue diffuse color. I enable the freestyle svg plugin and check all the necessary boxes. Freestyle exports the edges to the .SVG but there are no colors present.
Do I have to do something specific to export the materials as fills?

$\endgroup$
3
$\begingroup$

The SVG exporter only supports exporting the freestyle lines at the moment. If you want to have the fill in your SVG file as well, you can use the trace bitmap function in inkscape (or a similar action in other vector graphics programs) on your rendered image.

This is a little bit beyond strict blender topics, but I don't think there's a way to do this without external programs.

http://i.giphy.com/l41lKvw47mA396Ei4.gif

$\endgroup$
  • 1
    $\begingroup$ Thanks for your reply. If what you say is true, what is this "Exporting fills" section in the documentation page? blender.org/manual/render/freestyle/… $\endgroup$ – Jubei Oct 1 '15 at 8:58
  • 1
    $\begingroup$ From a few tests I performed, it does fill the space inside the curves, but in a fairly rudimentary way and with a single color. $\endgroup$ – TLousky Oct 1 '15 at 9:02
  • $\begingroup$ Could you perhaps link the .blend file? $\endgroup$ – Jubei Oct 1 '15 at 9:03
  • 1
    $\begingroup$ Here's a simple example with a cylinder: pasteall.org/blend/38340 You can see the difference between the filled SVG and the rendered image here: pasteall.org/pic/93673 $\endgroup$ – TLousky Oct 1 '15 at 9:10
2
$\begingroup$

The Blender manual seems to suggest you can do this but I've never gotten this to work. I also wrote a different guide on exporting lines, but for your needs there is an SVG output script that does what you need.

Once you have it installed press N to bring up object properties. At the bottom a new panel should be there called Export SVG.

enter image description here

This script exports based on the current view. There are loads of settings you can try but for basic export choose your export location and then press Export SVG. Now, when you open it in Inkscape you should have an SVG with fills.

enter image description here

If you want to smooth the vector file you'll have to manually merge the objects (Ctrl + Shift + +).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.