POV-Ray : Newsgroups : povray.newusers : How to pass variables from one frame to the next : Re: How to pass variables from one frame to the next Server Time
3 Sep 2024 08:17:53 EDT (-0400)
  Re: How to pass variables from one frame to the next  
From: Mike C
Date: 9 Apr 2005 22:52:12
Message: <425894dc@news.povray.org>
"Georg Olesen" <vib### [at] hotmailcom> wrote in
news:web.420b52fd9cf29933a278c9190@news.povray.org: 

> I'm making an animation of several frames. I would like to be able
> pass a variable from one frame to the next. Is there any way of doing
> this? In advance thanx Georg Olesen 
> 
> 

How are you defining the variables in frame 1 vs, e.g., frame 2, 5, or
50? 

IIRC, randomly generated numbers will generate the same numbers in
sequence every time the frame is rendered, so you can just use the clock
variable * difference and tack that onto the original variable.  Right? 

To get a variable, you'd usually declare like #declare
valuea=macro(paramforframea); so you'd be able to move them between
frames by recalculating the calculation from the last frame, so in frame
b, you'd be able to get the thing in frame a by doing the same thing
again, right? 

Otherwise, I have no idea what you're trying to achieve.  And I'm not
even sure about this myself, it's just a guess.


Post a reply to this message

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