I'm using inkscape as a level editor for a game I'm writing. For some of my objects I add extra attributes to the paths using the xml editor, all works well. Rather then make the extra attrs every time I make a new object I'd like to automate that... is there a way to create an extension to add arbitrary attributes to existing objects? For example I have a 2 point line I call an emitter and I add an extra attr called "power" for how powerful that emitter is. My game engine parses the xml and adds an emitter at the point0 of the line.. fires in the direction of point1 with the given "power". I'd like to make an extension that just makes an emitter with all the necessary requirements. Any good simple examples? I see examples of extensions but havne't found one that's similar to what I want to give me a head start.
thanks
d
Add custom Attributes to SVG xml
Re: Add custom Attributes to SVG xml
Just to check that you have had a look http://wiki.xmoto.tuxfamily.org/index.p ... g_Inkscape . It is a level editor for Inkscape written in python. Not sure if it could be adapted/portions adapted for your needs.