We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm wanting to make a system where one sketch creates an image and sends it into a folder where a second sketch randomly selects and loads one of the images in the folder. I know how to load images but how would I do it without knowing the file name.
(I'm also coding in python not js)
Answers
this.. :-<def getPathsFromFolder(folder, EXTS='extensions=,png,jpg,jpeg,gif,tif,tiff,tga,bmp'): return this.listPaths(folder, EXTS);Usage example: :-B
def setup(): global imagePaths imagePaths = getPathsFromFolder(this.dataPath(''))Replace the argument
this.dataPath('')w/ the String folder path where your images are. O:-)Ahh thats perfect. Thank you!