POV-Ray : Newsgroups : povray.general : #declare final_frame? Server Time
24 Dec 2024 12:54:27 EST (-0500)
  #declare final_frame? (Message 1 to 4 of 4)  
From: Nekar Xenos
Subject: #declare final_frame?
Date: 28 Jan 2008 09:12:53
Message: <479de2e5@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...

tnx


-- 
-Nekar Xenos-


Post a reply to this message

From: Alain
Subject: Re: #declare final_frame?
Date: 28 Jan 2008 10:30:00
Message: <479df4f8$1@news.povray.org>
Nekar Xenos nous apporta ses lumieres en ce 2008/01/28 09:13:
> 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...
> 
> tnx
> 
> 
final_frame must be declared in an ini file or on the command line. It's 
considered as a constant.
It can't be changed once the render is started. Please note that the final_frame 
value will affect the time differential between each frame. In your case, clock 
will change by 0.1 with final_frame =10 between each frames, and by 0.05 with 
final_frame =20.

You can add a line like
//+kff 10
//+kff 20
at the start of the file. In the windows version, you can right-click one of the 
  comments and select "copy ... to the command line" BEFORE you start the 
rendering process.

-- 
Alain
-------------------------------------------------
Coming soon: Windows for Nintendo!


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: #declare final_frame?
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

From: Nekar Xenos
Subject: Re: #declare final_frame?
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.