# I don't find the saveFrame file (set its path)

**URL:** https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579
**Category:** Beginners
**Created:** [June 8, 2021, 6:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579 "2021-06-08T18:01:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [June 8, 2021, 6:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/1 "2021-06-08T18:01:14Z")

</div>

I was looking for a way to save the image, so I found this sample code.  
I run it,  
but no file were saved on my hard drive.

What am I missing?

int x = 0;  
void draw() {  
background(204);  
if (x \< 100)  
{  
line(x, 0, x, 100);  
x = x + 1;  
}  
else  
{  
noLoop();  
}  
// Saves each frame as line-000001.png, line-000002.png, etc.  
saveFrame(“line-######.png”);  
}

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [June 8, 2021, 8:03pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/2 "2021-06-08T20:03:18Z")

</div>

missing setup() ?

This works here:

```auto

int x = 0;

void setup() {
  size(660, 770);
}

void draw() {
  background(204);
  if (x < 100)
  {
    line(x, 0, x, 100);
    x = x + 1;
  } else
  {
    noLoop();
  }
  // Saves each frame as line-000001.png, line-000002.png, etc.
  saveFrame("line-######.png");
}

```

---

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [June 8, 2021, 8:48pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/3 "2021-06-08T20:48:09Z")

</div>

Thanks. Will try it.

Where would the files be saved?  
Can I change it?

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [June 8, 2021, 8:49pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/4 "2021-06-08T20:49:46Z")

</div>

in processing type CTRL-k to open the sketch folder

it’s in this folder

* * *

**Quote**

- Alternatively, the files can be saved to any location on the computer by using an absolute path (something that starts with / on Unix and Linux, or a drive letter on Windows).

see [saveFrame() \ Language (API) \ Processing 3+](https://www.processing.org/reference/saveFrame_.html)

* * *

**Here is an example**

Here is an example to use the Sketch Path and make a new sub-folder in it

```auto
  // Saves each frame as line-000001.png, line-000002.png, etc.
  saveFrame(sketchPath("")+"my/"+"line-######.png");

```

hey, and welcome to the forum!

Great to have you here!

regards, Chrisir 😉

---

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [June 8, 2021, 8:54pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/5 "2021-06-08T20:54:30Z")

</div>

I found them 🙂 thanks

now I’ll try to figure how I save them in processing folder in drive F

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [June 8, 2021, 8:55pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/6 "2021-06-08T20:55:17Z")

</div>

yeah something like

`"f:\\..."` in Windows

This works for D in Windows

```auto
  // Saves each frame as line-000001.png, line-000002.png, etc.
  saveFrame("D:\\"
    +"my/"
    +"line-######.png");

```

---

<div class="post-metadata">

### Author: ![yalaniv](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yalaniv](https://discourse.processing.org/u/yalaniv)
#### Post date: [June 8, 2021, 9:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579/7 "2021-06-08T21:01:12Z")

</div>

I wrote "f:\process\… "  
And it worked 🙂  
Thank you so much

Now I can really start playing with this cool tool
