POV-Ray : Newsgroups : povray.general : #declares within #macro are cleared across (#switch, #case, #break) : Re: #declares within #macro are cleared across (#switch, #case, #break) Server Time
31 Jul 2024 08:24:45 EDT (-0400)
  Re: #declares within #macro are cleared across (#switch, #case, #break)  
From: Tim Nikias
Date: 10 Aug 2007 04:44:49
Message: <46bc2581$1@news.povray.org>
Mike Williams wrote:
> POV variables don't persist between frames.
> 
> When you start parsing frame 2, all the variables are undefined. They
> don't have the values that that they ended up with at the end of frame
> 1. You either have to re-calculate the values from scratch in each
> frame, or write the calculated values to a file and read them back in
> subsequent frames.

Shameless plug (and an attempt to help): If you just save ALL variables 
in an array, it might be very easy to use my I/O-Macros to read/write 
arrays to disk...

http://www.nolights.de/rnd/development.html#iomacros

Regards,
Tim

-- 
aka "Tim Nikias"
Homepage: <http://www.nolights.de>


Post a reply to this message

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