September 2009
Intermediate to advanced
472 pages
16h 45m
English
The most natural way to represent animation frames in Inkscape is by putting them on separate layers (4.6 Layers). You can easily toggle visibility of each layer to see how your frames stack up and control what changes from one frame to the next. However, creating many layers manually (Layer ▸ Add Layer) is very tedious. I wrote a simple Python script that creates a 200-by-200 px document with 100 empty layers:
print """<svg width="200" height="200" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape">""" for i in range(100): print '<g inkscape:groupmode="layer" display="none" id="%03d"/>' % (i + 1) print '</svg>'
All layers are created hidden (that’s what display="none"
Read now
Unlock full access