Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Export Animation

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 229 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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!)  
              ...  
          }  
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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:

          😂Thank you very much!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post