POV-Ray : Newsgroups : povray.general : Persistent variables across an animation run : Re: Persistent variables across an animation run Server Time
23 Apr 2024 22:22:59 EDT (-0400)
  Re: Persistent variables across an animation run  
From: jr
Date: 15 Dec 2021 02:45:00
Message: <web.61b99c28a8365710ea8869266cde94f1@news.povray.org>
hi,

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"
variables.

<https://wiki.povray.org/content/Reference_Talk:Array#Index_Entry_dictionary_keyword>


> 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.

<https://news.povray.org/povray.text.scene-files/message/%3Cweb.616d93c020122b7c5bd1b3ba6cde94f1%40news.povray.org%3E/#
%3Cweb.616d93c020122b7c5bd1b3ba6cde94f1%40news.povray.org%3E>


regards, jr.


Post a reply to this message

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