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 › exporting to imovie
Page Index Toggle Pages: 1
exporting to imovie (Read 1966 times)
exporting to imovie
Oct 27th, 2005, 3:41am
 
Does anyone know how to export a processing file to imovie?
What are the steps you take?
Re: exporting to imovie
Reply #1 - Oct 27th, 2005, 10:01pm
 
You can do this by saving the screen contents to a file sequence and then use quicktime to import them as a sequence. That would give you a .mov

I don't know about imovie, but perhaps that, or something like it, will allow you to import a sequence of images and then save as a the correct file type.

Code:

int frame, rate_total;
int saveonframe = x; // set this


void draw() {

if(frame ++ % saveonframe == 0) {
saveFrame();
rate_total += framerate();
}
}

public void stop() {

println( rate_total / (frame / saveonframe) + " fps");
super.stop();

}

Re: exporting to imovie
Reply #2 - Nov 29th, 2009, 8:13am
 
Hello,

I am new to Processing. I have placed this code in my sketch but an error occurs. It says "the function framerate() does not exist."

Help?
Re: exporting to imovie
Reply #3 - Nov 29th, 2009, 8:30am
 
and this should bringt you to a website that tells you that the command framerate is changes to frameRate
Re: exporting to imovie
Reply #4 - Nov 29th, 2009, 8:31am
 
btw for making a video you can use the moviemaker class instead of saving a sequens of images
http://processing.org/reference/libraries/video/MovieMaker.html
Re: exporting to imovie
Reply #5 - Nov 29th, 2009, 10:11am
 
Change it to frameRate instead of framerate? I still get an error message.

It's not exactly a video: I have six sketches that graph Perlin noise, and I just want them to be combined. What is the best way to do this?
Re: exporting to imovie
Reply #6 - Nov 30th, 2009, 12:53am
 
Quote:
I still get an error message.

It can be helpful to indicate which message you get, we are not psychic.

But a quick look at above code shows you should use frameRate without parentheses, ie. as a variable, not as a function call.

Quote:
I have six sketches that graph Perlin noise, and I just want them to be combined.

Combined in what way?
Page Index Toggle Pages: 1