SVG Importer

free scripts, plugins, models, textures
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

svgimport_2017_1.jpg
Left tiger is the raw import, middle is with some manual cleanup and the right is the original tiger shown in a web page

More improvements: get it here - http://clintons3d.com/plugins/truespace ... urves.html" onclick="window.open(this.href);return false;

The main motivation is that I wanted the ability to export CSS animations for SVG files. During the process got sidetracked by many needed improvements.
fixed a path bug
polygon import improved, import as curves then freeze and add pivots
import color and transparency
freeze curve maintains hierarchy
text import font, font size, font style and transforms
CSS animation export

TODO: script to make cleanup easier, current steps are 1. rectangle select all edges 2. form face 3. invert selection 4. delete 5. if facing wrong direction flip face
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

svgimport_2017_2.jpg
Another update. Image shows the option to break compound paths into individual curve items and shows 2 new buttons for cleanup and flipping faces.

The CSS animation is working, but I found that Microsoft browsers don't work. They can't apply CSS animations to SVG tags, so this version adds Greensock animation export. Greensock is a javascript based animation system, "GreenSock Animation Platform (GSAP) is a suite of tools for scripted, high-performance HTML5 animations in all major browsers."

This version also adds some scaling and better text sizing.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5429
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: SVG Importer

Post by clintonman »

May 31, Update supports svg image tags, constant color materials option, animation export ignores disabled clips. Also a couple of bug fixes for opacity keys and a file path bug.
Clinton Reese

http://clintons3d.com
Post Reply