Hi everyone, I am trying to upload randomly svg files with this method:
The pictures are picked to form 3 different groups
it should be displayed 3 images at time.
[i did an example to be sure]
What the error message is saying is that it can’t find a file called “frag2.svg” to read, which means that it probably isn’t in the folder. In your sketch folder, have you got files called:
frag1.svg
frag2.svg
frag3.svg
frag4.svg
frag5.svg
as if any of them are missing, then then you will get errors thrown at you.
Also (though you might already be aware of this), the int() function always rounds down so the second number in your random function should be 1 more than the biggest number in your files (e.g if there are 6 files you want this number to be 7).