Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-10-18 13:35:29 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-10-18 13:35:29 +0400
commit61a330baca0ff9bb3cf477c04f539ef276a0356f (patch)
tree7c51dee268d1ac1d3dc9fb54371d3c0741316022 /source/blender/makesdna
parent4b42c4bce41b139229c35781b6364cfb4125cba9 (diff)
Freestyle: Built-in SVG exporter.
Features: * Both still image and animation rendering, as well as polygon fills are supported. * The exporter creates a new SVG layer for every Freestyle line set. The different layers are correctly sorted. * SVG paths use data from line styles, so the base color of a line style becomes the color of paths, idem for dashes and stroke thickness. * Strokes can be split at invisible parts. This functionality is useful when exporting for instance dashed lines or line styles with a Blue Print shader * The exporter can be used not only in the Parameter Editor mode, but also from within style modules written for the Python Scripting mode. Acknowledgements: The author would like to thank Francesco Fantoni and Jarno Leppänen for their [[ https://github.com/hvfrancesco/freestylesvg | Freestyle SVG exporter ]]. Differential revision: https://developer.blender.org/D785 Author: flokkievids (Folkert de Vries) Reviewed by: kjym3 (Tamito Kajiyama)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index f8f962107f6..04a9291ba67 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -600,6 +600,11 @@ typedef struct RenderData {
int line_thickness_mode;
float unit_line_thickness; /* in pixels */
+ /* Freestyle SVG Export */
+ char svg_path[1024]; /* 1024 = FILE_MAX */
+ int svg_mode;
+ int svg_flag;
+
/* render engine */
char engine[32];
@@ -610,6 +615,15 @@ typedef struct RenderData {
int pad;
} RenderData;
+/* RenderData::svg_flag */
+#define FREESTYLE_SVG_EXPORT (1 << 0)
+#define FREESTYLE_SVG_SPLIT_AT_INVISIBLE (1 << 1)
+#define FREESTYLE_SVG_OBJECT_FILL (1 << 2)
+
+/* RenderData::svg_mode */
+#define FREESTYLE_CONTROL_SVG_FRAME 1
+#define FREESTYLE_CONTROL_SVG_ANIMATION 2
+
/* *************************************************************** */
/* Render Conversion/Simplfication Settings */