POV-Ray : Newsgroups : povray.advanced-users : Clock Problem (or question) : Re: Clock Problem (or question) Server Time
2 Nov 2024 03:16:41 EDT (-0400)
  Re: Clock Problem (or question)  
From: Bob Hughes
Date: 22 Jul 2000 15:14:07
Message: <3979f27f@news.povray.org>
"H. E. Day" <Pov### [at] aolcom> wrote in message
news:01bff266$90020260$537889d0@daysix...
| Is there any way to grab the clock value in a specific frame and make it a
| perminent value?  In other words, get the current clock value and make it
| into a declared value that doesn't change over the rest of the animation?

Maybe making the clock be a frame count instead of 0 to 1 and then divide by
total frames would be best:

INI file:
Initial_Clock=1
Final_Clock=100

POV file:
#declare Clock=clock/TotalFrames;
#declare TotalFrames=100;
#declare CheckFrame=50;

#if (clock>=CheckFrame) // from CheckFrame number onward
 #declare SavedClock=CheckFrame/TotalFrames; // this is seen
#end

Using Clock in place of 'clock' everyplace you would be using it besides.
'clock' will be a count then from first frame to last, and SavedClock is
your kept variable.  Not sure why anyone else including you wasn't thinking
of it this way.  Too simplistic perhaps?

Bob


Post a reply to this message

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