#! /usr/bin/env python

#######################
# (c) Jan Walter 2000 #
#######################

# CVS
# $Author: hans $
# $Date: 2002/10/12 12:32:10 $
# $RCSfile: makepovanim.py,v $
# $Revision: 1.1.1.1 $

import sys
import posix
import string

def usage():
    print 'usage: python makepovanim.py "staframe" "endframe"'

if __name__ == "__main__":
    if len(sys.argv) != 3:
        usage()
    else:
        staframe = string.atoi(sys.argv[1])
        endframe = string.atoi(sys.argv[2])
        for i in xrange(staframe, endframe + 1):
            filename = "test%04d.pov" % i
            execString = "povray +V -GA +W300 +H300 +I %s" % filename
            print
            print "#" * 79
            print execString
            posix.system(execString)
