Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 658 Bytes
import sys, os
from movierot import Movie
def brightmax(i):
Smoothly varying brightness with time so that the movie looks good
return brightmax0/(1.0+(float(i)/50)**2)
# Parse command line arguments
execname = os.path.split(sys.argv[0])[-1]
runid = sys.argv[1]
itime = int(sys.argv[2])
brightmax0 = float(sys.argv[3])
except IndexError, ValueError:
print "Usage: %s RUNID ITIME BRIGHTMAX" % execname
movie = Movie(runid=runid, movieid="tumble-%4.4i" % itime,
time=itime, nframes=72, verbose=1, force=0)
movie.brightmax = brightmax(itime), 5.0)