Changeset View
Changeset View
Standalone View
Standalone View
render_freestyle_svg.py
| Context not available. | |||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| bl_info = { | bl_info = { | ||||
| "name": "Freestyle SVG Exporter", | "name": "Freestyle SVG Export", | ||||
| "author": "Folkert de Vries", | "author": "Folkert de Vries", | ||||
| "version": (1, 0), | "version": (1, 0), | ||||
| "blender": (2, 72, 1), | "blender": (2, 80, 0), | ||||
| "location": "Properties > Render > Freestyle SVG Export", | "location": "Properties > Render > mosesfreestyle", | ||||
| "description": "Exports Freestyle's stylized edges in SVG format", | "description": "Exports Freestyle's stylized edges in SVG format", | ||||
| "warning": "", | "warning": "", | ||||
| "wiki_url": "", | "wiki_url": "", | ||||
| Context not available. | |||||
| scene = context.scene | scene = context.scene | ||||
| svg = scene.svg_export | svg = scene.svg_export | ||||
| freestyle = scene.render.layers.active.freestyle_settings | freestyle = window.view_layer.freestyle_settings | ||||
| try: | try: | ||||
| linestyle = freestyle.linesets.active.linestyle | linestyle = freestyle.linesets.active.linestyle | ||||
| Context not available. | |||||
| scene = context.scene | scene = context.scene | ||||
| svg = scene.svg_export | svg = scene.svg_export | ||||
| freestyle = scene.render.layers.active.freestyle_settings | freestyle = context.window.view_layer.freestyle_settings | ||||
| layout.active = (svg.use_svg_export and freestyle.mode != 'SCRIPT') | layout.active = (svg.use_svg_export and freestyle.mode != 'SCRIPT') | ||||
| Context not available. | |||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||
| register() | register()() | ||||
| No newline at end of file | |||||
| Context not available. | |||||