# Movie Maker version 4.1.3

**URL:** https://discourse.processing.org/t/movie-maker-version-4-1-3/41102
**Category:** Libraries
**Created:** [March 1, 2023, 8:50am UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102 "2023-03-01T08:50:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kylle](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kylle](https://discourse.processing.org/u/Kylle)
#### Post date: [March 1, 2023, 8:50am UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102/1 "2023-03-01T08:50:58Z")

</div>

Hi

I am using, for me, a new version of Processing (4.1.3). I have produced a number of image files:  
1.png, 2.png… 250.png and have the saved in a special frame folder.  
When I am running the movie maker it does not end with the last picture. It rather scrambles the files.  
Should I rename the files or what can I do.  
When I am using a commercial program (with watermarks) it gives a correct result.

Best regards  
K.

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [March 1, 2023, 12:04pm UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102/2 "2023-03-01T12:04:38Z")

</div>

Hello @Kylie,

Try sequential numbers that are the _same length padded with zeroes_ in front of the number.

0001  
0002  
…  
0020  
0021  
…  
0200  
0201  
…  
2000  
2001  
…  
9999

Processing can do this when saving frames:  
[https://processing.org/reference/saveFrame\_.html](https://processing.org/reference/saveFrame_.html)

You may need a utility program to rename them if they are generated outside of a Processing sketch.

`:)`

---

<div class="post-metadata">

### Author: ![Kylle](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kylle](https://discourse.processing.org/u/Kylle)
#### Post date: [March 1, 2023, 4:50pm UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102/3 "2023-03-01T16:50:18Z")

</div>

Hi  
Thanks! - It worked. I created a special function, where Hit is the saved frame counter.

```auto
void SaveToFile(int Hit){
  if (Hit<10){saveFrame("/frame/Path-000"+str(Hit)+".png");}
  if (Hit>=10&&Hit<100){saveFrame("/frame/Path-00"+str(Hit)+".png");}
  if (Hit>=100&&Hit<1000){saveFrame("/frame/Path-0"+str(Hit)+".png");}
  if (Hit>=1000&&Hit<10000){saveFrame("/frame/Path-"+str(Hit)+".png");}
}

```

---

<div class="post-metadata">

### Author: ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)
#### Post date: [March 3, 2023, 9:39am UTC](https://discourse.processing.org/t/movie-maker-version-4-1-3/41102/4 "2023-03-03T09:39:04Z")

</div>

Or even easier :

```auto
void SaveToFile(int Hit){
saveFrame("/frame/Path-"+nf(Hit, 5)+".png");
}

```
