POV-Ray : Newsgroups : povray.general : Lost macro request Server Time
11 Aug 2024 01:19:52 EDT (-0400)
  Lost macro request (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Ron Parker
Subject: Re: Another Lost macro request
Date: 9 Nov 1999 09:13:04
Message: <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

From: Bill DeWitt
Subject: Re: Another Lost macro request
Date: 9 Nov 1999 11:16:47
Message: <382848ef@news.povray.org>
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] povrayorg> 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

From: Greg M  Johnson
Subject: Re: Another Lost macro request
Date: 11 Nov 1999 16:12:41
Message: <382B309F.93A67035@my-dejanews.com>
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] earthlinknet> 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] earthlinknet> 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

From: Bill DeWitt
Subject: Re: Another Lost macro request
Date: 11 Nov 1999 17:07:40
Message: <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

From: omniVERSE
Subject: Re: Another Lost macro request
Date: 11 Nov 1999 20:51:19
Message: <382b7297@news.povray.org>
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] earthlinknet> 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

<<< Previous 10 Messages Goto Initial 10 Messages

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