diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-10-18 13:35:29 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-10-18 13:35:29 +0400 |
commit | 61a330baca0ff9bb3cf477c04f539ef276a0356f (patch) | |
tree | 7c51dee268d1ac1d3dc9fb54371d3c0741316022 /release/scripts/startup/bl_ui/properties_freestyle.py | |
parent | 4b42c4bce41b139229c35781b6364cfb4125cba9 (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 'release/scripts/startup/bl_ui/properties_freestyle.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_freestyle.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py index 606842db01d..132230f51fe 100644 --- a/release/scripts/startup/bl_ui/properties_freestyle.py +++ b/release/scripts/startup/bl_ui/properties_freestyle.py @@ -47,8 +47,8 @@ class RENDER_PT_freestyle(RenderFreestyleButtonsPanel, Panel): def draw(self, context): layout = self.layout - rd = context.scene.render + freestyle = rd.layers.active.freestyle_settings layout.active = rd.use_freestyle @@ -59,6 +59,23 @@ class RENDER_PT_freestyle(RenderFreestyleButtonsPanel, Panel): if (rd.line_thickness_mode == 'ABSOLUTE'): layout.prop(rd, "line_thickness") + row = layout.row() + #row.label(text="Use SVG Export") + row.prop(rd, "use_svg_export", text="SVG Export") + + row = layout.row() + row.active = rd.use_svg_export and freestyle.mode != 'SCRIPT' + row.prop(rd, "svg_mode", expand=True) + + row = layout.row() + row.active = rd.use_svg_export and freestyle.mode != 'SCRIPT' + row.prop(rd, "svg_path", text="") + + row = layout.row() + row.active = rd.use_svg_export + row.prop(rd, "svg_split_at_invisible") + row.prop(rd, "svg_use_object_fill") + # Render layer properties |