POV-Ray : Newsgroups : povray.general : Framed? Server Time
10 Aug 2024 17:22:40 EDT (-0400)
  Framed? (Message 1 to 4 of 4)  
From: mr art
Subject: Framed?
Date: 7 Nov 1999 21:34:47
Message: <382636A6.CCC7402C@gci.net>
Is there a quick/easy/intuitive way to assign a variable
the frame number that is being work on in an
animation? I would like on work on a few things
by frame count.
Any ideas?
Mr. Art


Post a reply to this message

From: TonyB
Subject: Re: Framed?
Date: 7 Nov 1999 22:02:02
Message: <38263d2a@news.povray.org>
>Is there a quick/easy/intuitive way to assign a variable
>the frame number that is being work on in an
>animation? I would like on work on a few things
>by frame count.
>Any ideas?


Yes.

#declare FrameNumber = clock/clock_delta;


Post a reply to this message

From: Ron Parker
Subject: Re: Framed?
Date: 8 Nov 1999 09:03:20
Message: <3826d828@news.povray.org>
On Sun, 7 Nov 1999 22:05:09 -0500, TonyB wrote:
>#declare FrameNumber = clock/clock_delta;

Assuming your clock starts at zero and the first frame is numbered
zero, this is correct.  The more general formula is 

#declare Initial_Clock=(whatever is in your INI file);
#declare Initial_Frame=(whatever is in your INI file);

#declare FrameNumber = (clock-Initial_Clock)/clock_delta + Initial_Frame;

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Nieminen Juha
Subject: Re: Framed?
Date: 8 Nov 1999 11:18:46
Message: <3826f7e6@news.povray.org>
Nathan has added an ini_option command to set an ini option from the pov
code.
  How about a reverse operation, ie. functions that return some values set
in the ini file (or wherever)? This way you could type:

#declare Initial_Clock = initial_clock();

or something like that.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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