POV-Ray : Newsgroups : povray.general : Lost macro request Server Time
11 Aug 2024 01:24:03 EDT (-0400)
  Lost macro request (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: Bill DeWitt
Subject: Re: Another Lost macro request
Date: 8 Nov 1999 18:02:49
Message: <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: Rune
Subject: Re: Lost macro request
Date: 8 Nov 1999 18:16:51
Message: <382759e3@news.povray.org>
mr.art wrote:
>I think that I got my copy from ????
>I know that I made adjustments and then
>sent it back to him and the ng's but his
>name escapes me. I will dig my copy off
>the HD and email you.
>Mr. Art

Lets see...

I originally made it as an include file.

Then you (Mr. Art) made it into a macro.

Bill, if you want to make it back into
an include file I can send you the
original include file if you are
interested.
What exactly will your include file be
doing?

Greetings,

Rune

---
Updated October 17: http://rsj.mobilixnet.dk
Containing 3D images, stereograms, tutorials,
The POV Desktop Theme, 350+ raytracing jokes,
miscellaneous other things, and a lot of fun!


Post a reply to this message

From: Bill DeWitt
Subject: Re: Lost macro request
Date: 8 Nov 1999 18:31:37
Message: <38275d59@news.povray.org>
Rune <run### [at] inamecom> wrote
>
> Bill, if you want to make it back into
> an include file I can send you the
> original include file if you are
> interested.

Well, I already rewrote it but I would like to see your original if you
don't mind.

> What exactly will your include file be
> doing?

I want to Stamp date, time, frame #, file name and copyright information in
small text at the bottom of each frame or image. I am setting up a stack of
.ini files and batch files and .inc files to do this. Any suggestions would
be appreciated.


Post a reply to this message

From: omniVERSE
Subject: Re: Another Lost macro request
Date: 8 Nov 1999 18:44:26
Message: <3827605a@news.povray.org>
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: 9 Nov 1999 00:01:34
Message: <3827aaae@news.povray.org>
I forgot the quotes, it works great now.

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?

Uh, more importantly, is there a fix for the Help file? Mine is almost
unusable as it is...


omniVERSE <inv### [at] aolcom> wrote in message
news:3827605a@news.povray.org...
> 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: 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 5 Messages Goto Initial 10 Messages

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