POV-Ray : Newsgroups : povray.programming : Re: Persistent Variables : Re: Persistent Variables Server Time
29 Jul 2024 08:21:34 EDT (-0400)
  Re: Persistent Variables  
From: Chris Young
Date: 11 May 1998 23:54:25
Message: <3558c710.6355776@news.povray.org>
On Wed, 14 Jan 1998 20:53:43 -0800, "Ken Cecka" <cec### [at] televarcom>
wrote:

>I'm a little behind the times on this posting, so I decided not to reply to
>the former thread, but start a new one.  On Dec. 27th, Tim Grubb asked about
>adding persistent variables to POV.  It turns out that POV is already
>capable of them in a round about sort of way.  I actually saw this technique
>used in a tree include file a long time ago, but I don't recall who wrote
>it.  Anyway, you can achieve persistent variables through the debug stream.
>Redirect the debug output to a file, and write out your variables in the
>form of #declare's to the file.  Then include that file to get the previous
>value.  I guess an example is the easiest way to demonstrate.  I'll attatch
>persistent.ini and persistent.pov.  They are just a test of the idea, and in
>no means robust, but I imagine a fairly comprehensive include file could be
>written for this type of thing.  Even if not, it's pretty easy to impliment
>in a scene.
>
>Ken
>

As an expansion on your idea, POV-Ray 3.1 will have #fopen, #write,
#read, and #fclose.


Post a reply to this message

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