Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Movie Saver

    SDK Help
    0
    3
    379
    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
      Helper
      last edited by

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

      On 26/01/2007 at 14:51, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hi everybody,
      i found this 'Movie Saver' example in the 9.5 COFFEE documentation. Its not working in the current version 10 and i cant figure out why. Any ideas? Thank you.

        
        
      // Makes a small 50 frame movie with a white line moving before a red background.  
        
      main()  
      {  
      var i;  
      var fn = GeGetStartupPath();  
      var bm = new(BaseBitmap,80,60);  
      var ms = new(MovieSaver);  
      var bc = new(BaseContainer);  
        
      fn->AddLast("avtest.avi");  
        
      if (!ms->Open(fn,bm,12,FILTER_AVI_SMALL,bc,FALSE)) return FALSE;  
        
      for (i=0; i<50; i++)  
      {  
          bm->SetPen(vector(1,0,0));  
          bm->DrawRect(0,0,79,59);  
        
          bm->SetPen(vector(1,1,1));  
          bm->DrawLine(i,0,79-i,59);  
        
          ms->AppendFrame(bm);  
        
          println(i);  
      }  
        
      ms->Close();  
      }  
        
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        On 29/01/2007 at 03:04, xxxxxxxx wrote:

        This seems like a bug. I reported it.

        cheers,
        Matthias

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

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

          On 12/02/2007 at 04:50, xxxxxxxx wrote:

          ok, tried it again. when you use the script editor you have of course to remove the main(){}. it works fine here.

          cheers,
          Matthias

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