#Jay Summet # Released to the public domain September 28th 2007 # from myro import * initialize() #this function takes a grayscale video of Num frames and returns it in a list: def captureMovie( NumFrames ): movie = [] for frame in range(NumFrames): p = takePicture("gray") movie = movie + [ p ] print ".", return(movie) motors(0.2,-0.2) retMovie = captureMovie(10) stop() motors(-0.2,0.2) retMovie2 = captureMovie(10) stop() #append movie 2 to the end of movie 1. retMovie = retMovie + retMovie2 #show the movie and save the frames. index = 0 for pic in retMovie: show(pic) wait(0.25) savePicture(pic,"movieFrame%.3i.jpg" % index) index = index + 1