saveFrame("image-####.png");

hey guys recently i used this line of command in my sketch a few times i was expecting something like image-1.png then image-2.png etc. but what i get is image-(some random number).png etc.
So why is this happening is there a solution to that?

Tagged:

Answers

  • Answer ✓

    the #### is replaced by the frame number, there is a clue in the name.

    think about it, how would the program know that this was the first time it was run? the second? the third? the 1 millionth?

    you could look in the directory and find the file with the biggest number each time, but that gets ugly with lots of files.

    maybe use a timestamp, arrange them by time and date?

Sign In or Register to comment.