POV-Ray : Newsgroups : povray.general : #declare final_frame? : Re: #declare final_frame? Server Time
31 Jul 2024 00:22:53 EDT (-0400)
  Re: #declare final_frame?  
From: Nekar Xenos
Date: 29 Jan 2008 00:55:56
Message: <479ebfec@news.povray.org>
"Nicolas Alvarez" <nic### [at] gmailisthebestcom> wrote in message 
news:479dfb3e$1@news.povray.org...

>> 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 :)
>
Thanks, this should work :)

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

oops! ;


-- 
-Nekar Xenos-


Post a reply to this message

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