POV-Ray : Newsgroups : povray.general : #rename : Re: #rename Server Time
12 Aug 2024 07:23:48 EDT (-0400)
  Re: #rename  
From: Steve
Date: 17 Mar 1999 08:27:08
Message: <36EFAE65.19FAB17@puzzlecraft.com>
I probably can't answer this - but can you use a C style address pointer
to pass a local variable from the math function back up to the file
naming function? By using address pointers you might be able to free up
memory that a global variable would otherwise use.

If that doesn't make sense, how about writing a second text file by
reading the first? Just use the original output as temporary disk
storage until the final text file is written kinda thing.



"Rune S. Johansen" wrote:

> I have a pov file which
> create e text file, then
> do some calculations, then
> write some output to the
> text file and then closes
> it.
>
> The problem is that the name
> of the text file created
> should depend on the
> calculations made. But POV
> always have to give the file
> a name before it writes data
> to it. Is there any way I can
> choose the name of the text
> file depending on the
> calculations?
>
> Notes:
> the output data written to the
> text file is not readable by
> POV-Ray.
> All the calculations can't
> easily be stored in memory.
>
> Thanks,
>
> Rune S. Johansen
> http://hjem.get2net.dk/rsj


Post a reply to this message

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