Blender Git Loki

Git Commits -> Revision a8a92cd

Revision a8a92cd by Antonio Vazquez (master)
March 24, 2021, 14:28 (GMT)
GPencil: New modules for Import and Export

This patch adds support to export and import grease pencil in several formats.

Inlude:

* Export SVG
* Export PDF (always from camera view)

* Import SVG

The import and export only support solid colors and not gradients or textures.

Requires libharu and pugixml.

For importing SVG, the NanoSVG lib is used, but this does not require installation (just a .h file embedded in the project folder)

Example of PDF export: https://youtu.be/BMm0KeMJsI4

Reviewed By: #grease_pencil, HooglyBoogly

Maniphest Tasks: T83190, T79875, T83191, T83192

Differential Revision: https://developer.blender.org/D10482

Commit Details:

Full Hash: a8a92cd15a5251377474fbfdcf9ff0298a8457a9
Parent Commit: ce359da
Lines Changed: +6990, -2

19 Added Paths:

/source/blender/editors/io/io_gpencil.h (+45, -0) (View)
/source/blender/editors/io/io_gpencil_export.c (+430, -0) (View)
/source/blender/editors/io/io_gpencil_import.c (+195, -0) (View)
/source/blender/editors/io/io_gpencil_utils.c (+64, -0) (View)
/source/blender/io/gpencil/CMakeLists.txt (+99, -0) (View)
/source/blender/io/gpencil/gpencil_io.h (+92, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_base.cc (+386, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_base.h (+116, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_capi.cc (+202, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_export_base.h (+38, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_export_pdf.cc (+311, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_export_pdf.h (+67, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc (+464, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_export_svg.h (+89, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_import_base.cc (+85, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_import_base.h (+41, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_import_svg.cc (+253, -0) (View)
/source/blender/io/gpencil/intern/gpencil_io_import_svg.h (+56, -0) (View)
/source/blender/io/gpencil/nanosvg/nanosvg.h (+3313, -0) (View)

11 Modified Paths:

/release/scripts/startup/bl_ui/space_topbar.py (+9, -0) (Diff)
/source/blender/blenkernel/BKE_gpencil_geom.h (+15, -1) (Diff)
/source/blender/blenkernel/intern/gpencil_geom.c (+553, -0) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+15, -0) (Diff)
/source/blender/editors/include/ED_gpencil.h (+1, -0) (Diff)
/source/blender/editors/io/CMakeLists.txt (+15, -0) (Diff)
/source/blender/editors/io/io_ops.c (+11, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+1, -1) (Diff)
/source/blender/io/CMakeLists.txt (+2, -0) (Diff)
/source/blender/python/intern/bpy_app_build_options.c (+14, -0) (Diff)
/source/blender/python/intern/CMakeLists.txt (+8, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021