POV-Ray : Newsgroups : povray.general : #declare final_frame? : Re: #declare final_frame? Server Time
31 Jul 2024 00:28:28 EDT (-0400)
  Re: #declare final_frame?  
From: Nicolas Alvarez
Date: 28 Jan 2008 10:56:46
Message: <479dfb3e$1@news.povray.org>
Nekar Xenos escribió:
> Is the any way I can declare the amount of frames in a .pov file for 
> instance:
> 
> #if(Result=Desired_Result)
>     #declare final_frame=10
> #else
>     #declare final_frame=20
> #end
> 
> According to the docs I can't do it this way. Is there any other way of 
> doing it? I can't seem to find anything.
> Please help...

Interesting. So you want to increase the number of frames if you still 
didn't reach the result you wanted? Here's a trick you could use: render 
with 1000 frames or some other super-high amount, and:

#if(Result = Desired_Result)
     #error "Aborting render, reached desired result"
#end

That would render only enough frames :)

By the way, #declare statements should end on a semicolon.


Post a reply to this message

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