On Sun, May 06, 2007 at 07:33:29AM -0700, Ted Gould wrote:
This means that there would be an "up" key which makes the next layer active and visible and all others invisible, and a "down" key which makes the previous layer active and visible and all others invisible.
This might be possible from the technical perspective, but I don't think that "up" and "down" are good keys for it.
"left" "right" maybe?
And would it be an efficient way of implementing this? On Aaron Spike's site it said that the entire SVG is written to a file when it's passed to Python. However, I'd need to flip frames back and forth every second if I want to check the animation. Also, does Inkscape parse and reconstruct the entire document when Python has changed something, or is something like a diff applied?
Unfortunately it is pretty much a full replacement today. Plus with serializing everything into files, it really isn't high performance. I'm not saying it's impossible with enough hardware, but I don't think using a script will work for you today.
This approach might be interesting for a proof of concept, but this really sounds like something more geared for the DOM-based embedded scripting approach.
Bryce