Craszh / BlenderModelToSVG

Plugin for Blender that allows the user to convert a mesh and export it to an SVG file.
GNU General Public License v3.0
5 stars 0 forks source link

Feature request #1

Open xreider opened 3 years ago

xreider commented 3 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 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 or 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 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?

Craszh commented 3 years ago

I'm afraid that right now the conversion process works in such a way that collections are completely ignored during the SVG export. The addon doesn't take any object hierarchy or grouping into consideration, it merely breaks down all the selected objects (regardless of what collection they belong to) into individual polygons and then sorts them all at once in order to create a more precise image – this is the reason why all polygons belong to the same group with attribute id="model_to_svg_group" in the final .svg file.

Adding any sort of feature that would retain some sort of object hierarchy such as collections would require substantial changes to the core of the conversion process (or creating a separate process for specifically converting individual collections). While this feature would be an improvement, I'm afraid I currently don't have enough free time to promise anything of this scale in the near future, much less extremely soon.