tris...@hxgraphics wrote:
(1)
The following predefined variables for keyboard interaction were working:
key, keycode, keydown; but when I retrieved the latest version from the
repository they ceased to function. However, the mouse interaction still
works, so I'm still able to make use of this for interaction.
Same happens here, looking at the changesets i am at a loss of what
could have happened...
I'll take a look at this during the weekend and try to find the culprits.
(2)
Another feature which would prove handy is some kind of 'export as video'. I
may have overlooked something, but I cannot find a feature to do it. I am
currently delivering a Shoebot course to my students and they are excited
about the course so far -- often emailing .png examples of what they are
busy with to their friends. Some of the initial feedback is that they are
unable to send animated examples.
Provided a series of frames could be compiled into any given video format --
thus creating a rather large video file -- it then be compressed and
transcoded using any other software. Short of this, a series of .png files
would suffice -- these could be compiled into a video outside of Shoebot.
you can do this using the snapshot(filename) function. If you place it
in the draw loop and have a frame counter that you append to the
filename, you'll be able to generate an image sequence. In a very messy
way, this would be it:
filenameroot = 'output'
extension = '.png'
counter = 0
def draw():
# do your drawing here
filename = filenameroot + str(counter) + extension
snapshot(filename)
from there, you can create an .avi file using ffmpeg. According to
http://www.3daet.com/pages/540/image_sequence_to_avi/ and
http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=1&t=937 , this would be
the way:
ffmpeg -i output%d.jpg movie.avi
mencoder is also able to do this, though i couldn't quickly find an
example of this.
let us know how it turned out for you!
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net