How am I supposed to open sketches downloaded from github?

Hey there. I was trying to download sketches that other people have put on github so I could take a look at the code and get some insight on how to structure my own sketches.
The problem I’m having is the sketch never seems to be inside an appropriately named folder , processing always tells me to place the sketch in a folder named the same as the sketch. This happens whether or not I open the main file or another, which obviously won’t work without the other files.
Obviously it’s not an issue for me to take the files and put them all in a correctly named folder, but sometimes its not clear which file is the main file. Im wondering if there is something here I am missing or doing wrong? I’ve barely ever used github so I’m just confused why the downloads come this way. Maybe I’m supposed to do something other than just downloading the zip.

1 Like

AFAIK, the rule is: a sketch folder must have its name match 1 of the “.pde” files inside it. :straight_ruler:

So I guess you can choose any of those “.pde” files as the name for the sketch’s folder. :wink:

But be warned that the chosen “.pde” filename will be the 1st tab in the PDE. :flushed:

2 Likes

oh okay thanks,

do you know why the files dont come in a folder with a name like that? is it just what github does or is it because the uploader isn’t using the PDE or something else?

It’s b/c the uploader doesn’t know that uploading the sketch’s files w/o their folder will make life a lil’ more difficult for the downloader. :neutral_face:

Here’s a sketch example that had been uploaded along w/ its folder: :innocent:

3 Likes

that is a very… interesting sketch lol

thanks a lot for having the patience to explain the simplest things to a simpleton like myself

Not mine. It came from: