POV-Ray : Newsgroups : povray.general : animation cross post Server Time
27 Dec 2024 05:38:35 EST (-0500)
  animation cross post (Message 1 to 3 of 3)  
From: sully323
Subject: animation cross post
Date: 5 Jan 2006 21:15:00
Message: <web.43bdd23c945ddbbc626ccb200@news.povray.org>
Sorry to cross post, but this question is "broader"  than just amimation...

I just read the post about animating POSER figures posted
8/1/2004(in the poser topics... )

  I was wondering if anything has changed since then?  Also...a long while
ago, someone explained to me how to write a command SORT of like this
(???);




   #declare My_OBJECT=object { "MY_POSER_FIGURE" concat "frame_number"}
       object{ My-OBJECT  }


so as to automatically render each of the differently posed  object files
from POSER & POSERAY.  Any help?????
  (it's the "CONCAT" thing...???)


Post a reply to this message

From: Alain
Subject: Re: animation cross post
Date: 6 Jan 2006 12:17:15
Message: <43bea61b$1@news.povray.org>
sully323 nous apporta ses lumieres en ce 2006-01-05 21:13:
> Sorry to cross post, but this question is "broader"  than just amimation...
> 
> I just read the post about animating POSER figures posted
> 8/1/2004(in the poser topics... )
> 
>   I was wondering if anything has changed since then?  Also...a long while
> ago, someone explained to me how to write a command SORT of like this
> (???);
> 
> 
> 
> 
>    #declare My_OBJECT=object { "MY_POSER_FIGURE" concat "frame_number"}
>        object{ My-OBJECT  }
> 
> 
> so as to automatically render each of the differently posed  object files
> from POSER & POSERAY.  Any help?????
>   (it's the "CONCAT" thing...???)
> 
> 
The concat format is wrong. Use:
#include concat("MY_POSER_FIGURE",str(frame_number,-2,0),".EXTENTION")
where "MY_POSER_FIGURE" is a string of the constant part of the file name and
"EXTENTION" is the 
actual extention of the file to include. You need str to convert the variable
"frame_number" into a 
string, the -2 is to left pad with zeros and using at least 2 digits. (use -3 if you
have from 10 to 
999 frames)

Alain


Post a reply to this message

From: sully323
Subject: Re: animation cross post
Date: 7 Jan 2006 01:05:00
Message: <web.43bf590a5768fa34d20173a0@news.povray.org>
> The concat format is wrong. Use:
> #include concat("MY_POSER_FIGURE",str(frame_number,-2,0),".EXTENTION")>
> Alain

Yeah, I knew I didn't have it right ;)

thanx!


Post a reply to this message

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