Gui commands for loading

howdy,

just wanted to ask about loading external files. i know obviously about loading them in in oF in setup. but what im looking for is to use a gui to load external files. say mp3 or .wav to picture files.
i wish there was a example given, but there isnt.

can someone point me in a good direction?
thanks

hi,
it is very simple indeed.you can use the ofSystemLoadDialog() function that will open a system default dialog.
there is an example indeed. in utils > fileOpenSaveDialogExample
then you can filter the files based on the extension. use ofFilePath::getExtension(string path) to get the extension of the file easily.

cheers!

aaah, great. seem to completely forget. thanks @roymacdonald