![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
If you are working with Python, could you please try using inkex.py as the basis for your extension? Not because it is good or the only way to do it, but because you might be able to make it better. :)
Jay Vaughan wrote:
the thing is, how do i get the 'selection order' from inside an inkscape extension script? i.e., i want to rename the elements that have been selected, 'in the order that they were selected', (not the order in which they appear in the DOM) .. is this feasible?
I was playing with this in interp.py this weekend. In the current state of the extensions mechanism you don't need to do a thing. The ids inkscape passes to the script on the command line are passed in the order they were selected. Very useful! I hope it stays this way.
If you don't mind, I would be happy to work on this with you.
Aaron Spike