The Freestyle SVG Exporter page in the manual shows this image: svg_manual_image but doesn't really have any indication of how to achieve this contour line look...

I did some more digging around and found an article from 6 year ago with a similar image, that had a very similar picture and provided a script, which I've yet to try (haven't messed with scripts in blender yet...): similar image

Is there a more "official" way of achieving this? I know e.g. Rhino3D has contour line command so I'm wondering if blender has anything similar?

edit: I want to render the scene as an svg, should have specified. I got the script to work, but it's destructive... it operates on the mesh directly unfortunately. If anyone can find a way around this would be helpful.


1 Answer 1


Simple node setup that uses the separated Z texture coordinates and modulo to drive a repeating color ramp.

  • Use the green cursor on the ramp to change thickness of lines.
  • Use the Z Scale to adjust line space
  • For the ground, same texture but using the X texture coordinate component.

enter image description here

  • $\begingroup$ thank you! This does answer the question as it was posted. Though I left out an important detail, the fact that I wanted the lines to render as an SVG. My fault, so I'll mark this as correct in a few days if no one else answers. $\endgroup$
    – stillsleep
    Apr 27, 2020 at 5:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .