Sample curves in python exporter

General discussions about Inkscape.
vlad2048
Posts: 5
Joined: Tue Mar 01, 2011 3:03 pm

Sample curves in python exporter

Postby vlad2048 » Tue Mar 01, 2011 3:42 pm

I'd like to use Inkscape as a level editor.
What would be good resources to get started writing a python exporter ?
Particularly, what functions would I use to sample Bezier curves into a finite set of points ?

(I figures it'd be easier to write a python exporter than a .svg parser. I might be wrong though)

Thanks !

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Sample curves in python exporter

Postby Simarilius » Wed Mar 02, 2011 5:28 am

Just posted an extension that exports the points from curves:

viewtopic.php?f=5&t=8826#p31912

although I based it on code from
http://jumpnslide.tumblr.com/

vlad2048
Posts: 5
Joined: Tue Mar 01, 2011 3:03 pm

Re: Sample curves in python exporter

Postby vlad2048 » Wed Mar 02, 2011 5:52 am

Ah thanks that would be a good start.
But in the meantime I've found a AS3 svg parser that supports curves
http://www.ezqueststudios.com/blog/box2 ... er-curves/


Return to “General Discussions”