We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello! Its my first time on this forum. I make lots of Processing sketches that open files saved within the sketch path (3D models mainly).
However I want to export a sketch for other people to use and instead of telling people they need to drop their files into the sketch folder, it would be amazing if my interface had a button to 'load file', and it would pop up a finder window or built-in equivalent so that they could import files from other folders.
Is this something that is covered by one of the many amazing libraries? I'm familiar with controlP5, does that offer a solution?
thanks
Answers
Have you already taken a look at Processing's reference about selectFolder() & selectInput()? /:)
You can also take a look of an example of its usage in this older post:
http://forum.processing.org/one/topic/listing-last-10-modified-files-in-directory
That is amazing! Thank you. Its funny, but googling help with code is usually easy if its 'Processing' + specific words like 'array','rectangle',etc, but googling 'file, open, folder, select', didn't bring up any of these built-in functions. Thanks for pointing me to them.
Exploring the http://processing.org/reference/ page can be useful...