On 19/10/2010 16:09, audrey samson wrote:
2) a graphical button (i.e. filled green circle) which, when
'pressed',
will 'save as' (to record the current vector drawing to a folder with a
numerically incrementing filename), 'select all', 'erase', 'return
pointer to paintbrush tool option'.
Random ideas:
1. You already have a 'save' button: ctrl-S .. It should not be hard to
get the drawees to hit a key shortcut now and then.
1.5 *maybe* there's some way to get inkscape to save on a timer --
perhaps a python extension.
2. Poll the svg file (save it someplace predictable) with some kind of
loop. Perhaps do a diff.
3. Send the xml (svg) off to your server. If it's a diff, do some kind
of patch on-the-fly.
4. Give each performer/drawee a layer of their own -- that way you can
live-mix what they are doing.
5. You could even use lxml (or whatever) to pull the data apart and
re-combine it into an output (so you can control which layer is on top,
scale and so on) and then use pycairo to produce a live PNG output,
which your html/javascript can then pull at intervals.
(Not sure about browser support for svg yet, so maybe a png/jpg will be
best.)
hth,
\d