POV-Ray : Newsgroups : povray.general : Persistent variables across an animation run : Re: Persistent variables across an animation run Server Time
20 May 2024 17:52:28 EDT (-0400)
  Re: Persistent variables across an animation run  
From: jr
Date: 15 Dec 2021 02:45:00
Message: <web.61b99c28a8365710ea8869266cde94f1@news.povray.org>

Alessio Sangalli <man### [at] gmailcom> wrote:
> I know this has been discussed many times in the past decades, but -
> besides having a bunch of macros that do #fopen's and #fwrite-#fread's,
> is there any plan to add "animation scope" to variables? It would make
> animations easier, especially when using non-linear accelerations, which
> is commonly the case when using easing functions.
> Also, vectors or - even better - dictionaries would be a great addition
> to the language, especially if they could be written to disk (or kept in
> animation scope).
> Is there any workaround that I am not aware of for the above?

upgrading?  :-)  v3.8 will get you dictionaries, though no "animation scope"


> Even the possibility to read files line by line would be useful.

have a look at 'Filed()', another recent macro of mine.  you can read a range of
"records", or all. a range can be a single record, and you could use
'frame_number' to "index".  serialising a dictionary using 'Filed()' would be
straightforward too.


regards, jr.

Post a reply to this message

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