Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.658 kB
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]
try:
runid = sys.argv[1]
itime = int(sys.argv[2])
brightmax0 = float(sys.argv[3])
except IndexError, ValueError:
print "Usage: %s RUNID ITIME BRIGHTMAX" % execname
exit
movie = Movie(runid=runid, movieid="tumble-%4.4i" % itime,
time=itime, nframes=72, verbose=1, force=0)
movie.brightmax = brightmax(itime)
movie.camera.set_steps(5.0, 5.0)
movie.makemovie()
Jump to Line
Something went wrong with that request. Please try again.