From: Anton S. <ant...@gm...> - 2007-02-20 19:35:50
|
Nils Wagner wrote: > Is there a way to call povray from python ? > I found out that it works for single input files > > import os > os.system("povray quickres.ini'[640x480, AA 0.3]'+iwoodexample.pov +fn") > > but how can I apply povray to multiple files woodexample001.pov - > woodexample009.pov ? for filename in pov_file_list: os.system( "povray ... +i%s" % filename ) or, if the filenames are known to fit a pattern, for n in range(count): os.system( "povray ... +iwoodexample%03d" % n ) (".pov" need not be specified in the +i field.) -- Anton Sherwood, http://www.ogre.nu/ |