![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 9 Nov 1999 00:01:25 -0500, Bill DeWitt wrote:
>Next question, is there anyway to get the name of the file that is being
>parsed and #declare it as a text string to be read in that file? So that I
>can lable my images with the file name without having to type it in
>everytime I render an incremented file name?
You could certainly put it in the same file you're putting the time in.
If you make it an argument to the batch file, you can output it to the
file and run the script without having to type it twice, e.g.:
@echo off
echo " > gottime.txt
echo | more | time | find "Current" >> gottime.txt
echo "; >> gottime.txt
echo " >> gottime.txt
echo %1 >>gottime.txt
echo "; >>gottime.txt
c:\progra~1\pov-ra~1.1\bin\pvengine.exe /render %1
exit
The original version of this batch file doesn't work on NT, by the
way, so I haven't been able to test it.
--
These are my opinions. I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks, that's what I've been doing, using the "%s" string substitution. I
was hoping there was a more direct way.
Ron Parker <ron### [at] povray org> wrote in message
news:38282bf0@news.povray.org...
> On Tue, 9 Nov 1999 00:01:25 -0500, Bill DeWitt wrote:
> >Next question, is there anyway to get the name of the file that is being
> >parsed and #declare it as a text string to be read in that file? So that
I
> >can lable my images with the file name without having to type it in
> >everytime I render an incremented file name?
>
> You could certainly put it in the same file you're putting the time in.
> If you make it an argument to the batch file, you can output it to the
> file and run the script without having to type it twice, e.g.:
>
> @echo off
> echo " > gottime.txt
> echo | more | time | find "Current" >> gottime.txt
> echo "; >> gottime.txt
> echo " >> gottime.txt
> echo %1 >>gottime.txt
> echo "; >>gottime.txt
> c:\progra~1\pov-ra~1.1\bin\pvengine.exe /render %1
> exit
>
> The original version of this batch file doesn't work on NT, by the
> way, so I haven't been able to test it.
>
>
> --
> These are my opinions. I do NOT speak for the POV-Team.
> The superpatch: http://www2.fwi.com/~parkerr/superpatch/
> My other stuff: http://www2.fwi.com/~parkerr/traces.html
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Sorry, but what the heck is this?
_________________
greg, an ignorant non-command-line pov'er.
omniVERSE wrote:
> I have that. Here 'tis:
>
> @echo off
> echo " > gottime.txt
> echo | more | time | find "Current" >> gottime.txt
> echo "; >> gottime.txt
> c:\progra~1\pov-ra~1.1\bin\pvengine.exe /render
> c:\progra~1\pov-ra~1.1\scenes\gettime.pov
> exit
>
> Save as Gettime.bat
>
> Bob
>
> Bill DeWitt <the### [at] earthlink net> wrote in message
> news:38275699@news.povray.org...
> > I meant to say the minus signs in the "date" command...
> > ...maybe there isn't a way around that.
> >
> > Bill DeWitt <the### [at] earthlink net> wrote in message
> > news:382755b1@news.povray.org...
> > >
> > > OK, another one. I found the macro to get the time using the #fopen
> > > directive, but I can't find the gettime.bat that it uses. Almost
> certainly
> > > lost with the hard drive.
> > >
> > > It was a batch file to write to a file called gottime.txt I wrote a
> batch
> > > file to pipe the "time" command to that file but it doesn't seem to
> write
> > it
> > > correctly. I get a type mismatch error, probably because of the minus
> > signs
> > > in the text string.
> > >
> > >
> >
> >
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Greg M. Johnson" wrote:
>
> Sorry, but what the heck is this?
>
It is a dos batch file to copy the system time to a text file so that I
can read it with povray and use it in the scene.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks for answering Greg, Bill. Yep, indeed, a simple DOS command-line
batch file is all. The other part needed is the gettime.pov, or contents
thereof, and I've also made a INI to go with to make it all work as
intended.
I'll upload the zip of these three files to p.b.s-f group shortly, since the
original was meant for running from DOS and these allow to run from POV.
Bob
Bill DeWitt <the### [at] earthlink net> wrote in message
news:382B3E2A.340A0343@earthlink.net...
> "Greg M. Johnson" wrote:
> >
> > Sorry, but what the heck is this?
> >
>
> It is a dos batch file to copy the system time to a text file so that I
> can read it with povray and use it in the scene.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |