We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › MovieMaker in eclipse
Page Index Toggle Pages: 1
MovieMaker in eclipse (Read 532 times)
MovieMaker in eclipse
Nov 14th, 2007, 2:51am
 
hello P5!

Anyone using MovieMaker in eclipse?

I'm trying to record P5 animation using MovieMaker,
but when I run the code below, the applet window freezes!

any comment will be welcomed!

Thanks Smiley


****************************************

iimport processing.core.*;
import processing.video.*;

public class MovieMakerTest extends PApplet
{
MovieMaker mm;

public void setup()
{

frameRate(30);
size(300, 300);
background(0);

mm = new MovieMaker(this, 300, 300, "oops.mov", 30, MovieMaker.ANIMATION, MovieMaker.HIGH);
}

public void draw()
{
background(0);
ellipse(random(300), random(300), 50, 50);
mm.addFrame();
}

public void mousePressed()
{
mm.finish();
}
}
Re: MovieMaker in eclipse
Reply #1 - Nov 15th, 2007, 8:02pm
 
Mhmm, first of all you need to import the right libraries:

import moviemaker.*;
import moviemaker.MovieMaker;

Secondly I'm not sure if it will run as an applet. Maybe you have to add the following lines:  

static public void main(String args[]) {
PApplet.main(new String[] { /* "--present", */"yourPackage.yourMovie" });
}

and run it as an Java application.
Re: MovieMaker in eclipse
Reply #2 - Nov 19th, 2007, 5:16am
 
Thanks, eskimoblood!

It works now Smiley

Page Index Toggle Pages: 1