POV-Ray : Newsgroups : povray.general : Help - Shelling out to the Operating system from Povray : Re: Help - Shelling out to the Operating system from Povray Server Time
3 Aug 2024 18:16:53 EDT (-0400)
  Re: Help - Shelling out to the Operating system from Povray  
From: Hughes, B 
Date: 29 Nov 2003 15:17:33
Message: <3fc8fedd$1@news.povray.org>
Would be perfect maybe, Stephen, if it weren't for the fact I don't know how
to actually get the POV Planetarium 009 to animate.  :-)

I tried your method like so:

        #declare was_yr  = 2003;
        #declare was_mo  = 11;
        #declare was_dy  = 29;
        #declare was_hr  = 12;
        #declare was_mi  = 0;
        #declare was_se  = 0;
        #declare secs_incr = 1/15;

#fopen RunProg "plantime.bat" write

#write(RunProg, "povplan.exe " , was_yr," ", was_mo," ", was_dy," ",
was_hr," ", was_mi," ", was_se)

#fclose RunProg

#version 3.0

Goes at the head of the Sample.pov file and renders okay, except that I
haven't animated this utility before; not that I can remember anyway. I'm
not thinking clearly enough ATM to be able to get a series of frames done.

The Sample.ini has this added:

Pre_Frame_Command=cmd /c plantime.bat

If using Windows 95/98 it would be the word command instead of cmd. The /c
switch closes each DOS window after execution of the batch file. Oh, and
about that Sample.ini file... it has a +O switch telling the output to be
named sample.ini, obviously a mistake and should be sample.tga instead.

Bob H.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.