Hello, I would like to use Inkscape to draw animation frames. I have set up every frame as a separate layer. Now I'd like to be able to "flip" between layers for quickly checking the animation.
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.
My best bet was that I could change the active layer and visibility in a Python script with the attributes inkscape:current-layer="layerX" and style="display:none". Would that work? How could I trigger a script with a single keystroke?
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?
Are there other easy ways of implementing this flipping in the C++ code?
Any inputs on this will be appreciated Gerrit
_________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/