inkscape feature : fullscreen + scripted button
XXXXXXXXXXXXXXXX apologies for Xposting XXXXXXXXXXXXXXXX
hello all,
i am working on a performative installation in which inkscape is used. the idea is that people can draw on the screen (in inkscape) and a constantly refreshing screengrab is streamed to a server (in pure data) which displays it on a webpage. this page also displays a performer in australia. both 'screens' (australia + touchscreen in amsterdam) are communicating together through drawing/touch.
what i am missing in inkscape for all this to run smoothly is: 1) full screen option (not even showing the menu bar 'File', 'Edit', etc., *only* the canvas). 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'.
the situation is that i have very little time to figure this out and i can imagine that for some people on this list this is rather easy to implement. therefore i hope that someone out there has a bit of time and perhaps an inclination to work on this. there is of course budget for this and proper credits to the programmer/developper and promotion of inkscape project will be included in the project documentation.
the project runs on nov. 6th. (thus very quick deadline).
you can contact me @ this email address or on irc.indymedia.org #etc. i tried to join #inkscape but i cannot post.
much appreciated!
audrey samson ideacritik.com
On 19/10/10 16:09, audrey samson wrote:
what i am missing in inkscape for all this to run smoothly is:
- full screen option (not even showing the menu bar 'File', 'Edit',
etc., *only* the canvas).
two (or three) steps needed: 1) <F11> -> fullscreen 2) Shift + <F11> -> hide menu bar and tool bars 3) <F12> -> hide the dock with <F12>
Notes: - all shortcuts work as toggles - after hiding with 'Shift+<F11> rulers and scrollbars can be unhidden with their shortcuts 'Ctrl+R' and Ctrl+B' - 'Shift+<F11>' also works in the normal (not fullscreen) window to hide menu bar and toolbars.
hth, ~suv
On 19/10/10 16:09, audrey samson wrote:
you can contact me @ this email address or on irc.indymedia.org #etc. i tried to join #inkscape but i cannot post.
You have to register your nick with freenode to talk on #inkscape: http://freenode.net/faq.shtml#registering
~suv
On 10/19/2010 05:22 PM, ~suv wrote:
On 19/10/10 16:09, audrey samson wrote:
you can contact me @ this email address or on irc.indymedia.org #etc. i tried to join #inkscape but i cannot post.
You have to register your nick with freenode to talk on #inkscape: http://freenode.net/faq.shtml#registering
yes thanks. i'm now on #inkscape if anyone should have any brilliant ideas about the 'scripting button' : )
cheers audrey | ideacritik on irc
~suv
Just to throw it out there, I'd maybe look at dbus for the "business end" of the button. AFAIK, it's a way to access gui elements with scripts.
You should be able to write a script (perl, bash, etc.) and have it perform the required inkscape tasks (plus whatever upload, processing, etc.) you need.
I'm no expert on it, but I used it once a while back and I think it'll get you where you want to go.
I think that leaves only the display-button-and-have-it-run-a-script problem. Don't know what your requirements are on that (where that button needs to be placed), but, if it were me, I'd go with a gnome or kde panel for that button...then it's just a launcher.
--Fred
On Tuesday, October 19, 2010 02:42:53 pm audrey samson wrote:
On 10/19/2010 05:22 PM, ~suv wrote:
On 19/10/10 16:09, audrey samson wrote:
you can contact me @ this email address or on irc.indymedia.org #etc. i tried to join #inkscape but i cannot post.
You have to register your nick with freenode to talk on #inkscape: http://freenode.net/faq.shtml#registering
yes thanks. i'm now on #inkscape if anyone should have any brilliant ideas about the 'scripting button' : )
cheers audrey | ideacritik on irc
~suv
On 19/10/2010 16:09, audrey samson wrote:
- 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
participants (4)
-
audrey samson
-
donn
-
Fred McDavid
-
~suv