Export Animation

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/03/2012 at 21:12, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R12 
Platform:      Mac OSX  ; 
Language(s) :     C++  ;

---------
 I let C4D polygonize object through the use of BaseDocument::Polygonize().
Then I get one frame of the animation.
How can I export all frame?

Thanks.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/03/2012 at 21:52, xxxxxxxx wrote:

You will need to animate through each frame using code like this:

  
  LONG fps = doc->GetFps();  
  LONG endf = doc->GetMaxTime().GetFrame(fps);  
  // - For each frame  
  for (LONG startf = doc->GetMinTime().GetFrame(fps); startf <= endf; ++startf)  
  {  
      // - Animate Document to current frame  
      ctime =        BaseTime::BaseTime(startf, fps);  
      doc->SetTime(ctime);  
      doc->ExecutePasses(NULL, TRUE, TRUE, TRUE, BUILDFLAGS_0);  
      EventAdd();  
      // - Now polygonize into a new document (you must keep the original document for animating!)  
      ...  
  }  

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 22/03/2012 at 00:31, xxxxxxxx wrote:

:joy:Thank you very much!