home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem POV.BTM
- rem
- rem A Queueing program for POV-ray.
- rem
- rem Written by Dragon Cotterill. If you like this program please send e-mail
- rem to CIS:100014,3230 or draconis@cix.compulink.co.uk
- rem
- if exist %@name[%1].pov goto process
- if not exist d:\povray\povq.dat goto no_files
- set total=%@lines[d:\povray\povq.dat]
- echo There are %total files in the render list.
- set job=%@line[d:\povray\povq.dat,1]
- echo.
- echo Processing %job - Removing from Queue
- if %total==1 goto zap_file
- set file=%@unique[c:\]
- set count=%total
- echo ``>>%file
- :loop
- if %count==1 goto finish
- echo %@line[d:\povray\povq.dat,%@eval[%total-%count+2]]>>%file
- set count=%@eval[%count-1]
- goto loop
- :zap_file
- del d:\povray\povq.dat >NUL
- goto okay
- :finish
- set total=
- set count=
- del d:\povray\povq.dat >NUL
- move %file d:\povray\povq.dat >NUL
- set file=
- :okay
- pov %job
- :process
- povray +i%@name[%1].pov +o%@name[%1].tga +v +l\povray\include +l\povray\include2 +b50 %2 %3 %4 %5 %6 %7
- rem include contains all the standard stuff. You know colors, textures etc.
- rem include2 contains all my specific stuff like image maps etc.
- tga2gif %@name[%1]
- goto end
- :no_files
- echo.
- echo There are no files to process.
- quit
- :end
- pov
-