folkertdev / freestyle-svg-exporter

a Blender addon for exporting stylized lines created by the Freestyle render engine to an SVG format.
54 stars 18 forks source link

Naming feature request #20

Open xreider opened 2 years ago

xreider commented 2 years ago

I need the SVG exporter can assign names for pathes and collections (or only for collections will be good too). My .blender files has a deep nested collections, I give a name to collections, and when I export it I need SVG to have <g> tags with the attribute data-name with the name I gave. It is like in Adobe Illistrator, I assign the name [car, transport] to a layer or to an object, and <g> or <path> tag has a data-name attribute data-name='[car, transport]'. It works with objects names the same way.

Why I need this feature? I want't to make some kids educational website with illustrated dictionaries. E.g. render some bitmap , and above them put svg transparent pictures with <g> tags with data-name attributes, and these attributes are connected to my JS scripts to fetch information.

I need it extremely soon. How can we come to an agreement?

aalainn commented 2 years ago

I need this feature as well.

Maybe this Plugin for Blender 2.8 helps you: https://blenderartists.org/t/svg-output-script/566412#post2399829

It assigns names to each 2d-shapes. The only drawback to me is, that it uses the viewport instead the camera-frame to render the output.