Hi, I have a Processing script to read a .csv file and do some visualization with the data inside.
Currently I have to manually change the name of the .csv file to read inside the script, and I have a lot of .csv file to process ...
So, I want to ask how to use controlP5 or other library to create a drop down list which will automatically list the names of all the .csv files put in a given directory or the same directory as the Processing file.
By doing this, after I run the script, I only need to choose from this drop down list showing on the canvas and the name of the .csv file chosen will be automatically pass to the variable in the script.
May I have your advices on how to do this?
thanks!
J
Currently I have to manually change the name of the .csv file to read inside the script, and I have a lot of .csv file to process ...
So, I want to ask how to use controlP5 or other library to create a drop down list which will automatically list the names of all the .csv files put in a given directory or the same directory as the Processing file.
By doing this, after I run the script, I only need to choose from this drop down list showing on the canvas and the name of the .csv file chosen will be automatically pass to the variable in the script.
May I have your advices on how to do this?
thanks!
J
1