Movie Saver

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();  
}  
  

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

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