This should take care of most of the class property conversions to
use the new annotation format (colon instead of equals) for
assignment. There may still be a few edge cases that were missed.
The UI code assumed the existence of an active lineset. Turns out that
the final lineset can be removed (unlike render layers, where there is
always at least one).
Previously, relative paths were not handled well. The result was an
error in the console and no output at the expected location.
The path resolving order is as follows:
* use the given path (scene.render.frame_path()) when it is absolute
* otherwise, try to join with the current blendfile's location
* otherwise, try to join with the folder from which blender was called
Tested on linux, but not on Windows
This commit adds an option to use the color of the first or
final vertex of a stroke as the color of the extracted SVG path.
This setting can be found in `Render Layers > Freestyle Line Style SVG
Export`.
There was a problem with the order of stroke and fill elements. Additionally, sometimes names of linesets collide between render layers. this has been fixed by prepending the name of the render layer to a layer's id.
This patch implements SVG exporting to Freestyle. This feature is implemented
as an add-on, and can be enabled in the user preferences (render section).
Current features of the exporter include:
* a user interface.
* integration with the parameter editor and some of its settings, in particular:
color, transparency, thickness, visibility, stroke caps, and dashes.
* support for animation.
* some extra attributes that make manipulation of the exporter's result in Inkscape easier.
* the ability to export fills (a closed external contour with the underlying material's color).
Differential revision: https://developer.blender.org/D785
Author: flokkievids (Folkert de Vries)
Reviewed by: campbellbarton (Campbell Barton), sergey (Sergey Sharybin),
dna (Dan Eicher), kjym3 (Tamito Kajiyama)
Contributor: hva (francesco fantoni)