Export as a video

edited October 2013 in How To...

Dear all, I am working on an animation on Processing. I've designed everything but, I do not know how to export the animation which made in Processing. Could you help me, please? Thank u Best,

Answers

  • saveFrame();. saveFrame(); will output a series of images into your project folder. Those images can then be imported into a video editing application.

  • Thank you so much but it's not working, it now says I am mixing static and active modes.?

  • edited October 2013 Answer ✓

    That happens when you try to call a function outside of a function declaration. Here at "Hello mouse" it explains the difference between static and active modes: http://processing.org/tutorials/overview/

    This is not valid:

    saveFrame();
    void setup() { ... }
    void draw() { ... }
    

    But this is:

    void setup() { ... }
    void draw() { ... saveFrame(); ... }
    

    I used ... to indicate where you write your own program.

    Note: watch out when running programs that saveFrame(). It saves many images per second to disk. If you leave it running for a long time you may fill your hard drive.

  • Yes that's the mistake that I made. It works well, thank u so much...

  • I didn't test it yet, but have a look at the "Movie Maker" (/Tools/Movie Maker).

Sign In or Register to comment.