POV-Ray : Newsgroups : povray.general : Using povray at the command line in windows : Using povray at the command line in windows Server Time: 7 Jul 2008 15:38:03 GMT
  Using povray at the command line in windows  
From: darnold
Date: 3 May 2008 23:00:00
All,

I'd like to execute povray from the command line, but that does not appear to be
an option with the current windows version.

What I want to do is produce a sequence of images, each of which depends upon
two parameters, phi and theta. The values of phi and theta are generated in
Matlab and saved to a text file.

A former student of mine wrote a script on a unix box to accomplish the task:

f o r a in ‘ cat odeoutput.txt | sed ”s/ /_/g” ‘ ; do
TIME=‘echo $a | cut -d'_’-f1 ‘ ;
THETA=‘echo $a | cut -d ’_’ -f2 ‘ ;
PHI=‘echo $a | cut -d ’_’ -f3 ‘ ;
cat defs.ini | sed s / var1 /$THETA/ | sed s / var2 /$PHI/>newdefs.ini ;
povray -W640 -H480 +Oanim-$TIME.png anim.pov ;
done ;

But I don't seem to have access to the "povray" command in a DOS box to mimic
this approach.

Is there a suggested alternative?

Thanks.

David.


Post a reply to this message

Copyright 1991-2004 POV-Team™