I can't get fileRandom to work to assign random textures. This is the way I want to do it:
attr txtIdent = ""
attr txtPath = "images/New Textures_test/"
attr txtExt = ".jpg"
buildingSide-->
case txtIdent == "":
setupProjection(0, scope.xy, '1, '1)
texture(fileRandom(txtPath+"*"+txtExt)
projectUV(0)
else:
texture(txtPath+txtIdent+txtExt)
but I have also tried like this, assigning the random file to a constant first as per tutorial 7
const myRandomTxt= fileRandom("images/New Textures_test/*.jpg")
attr txtIdent = ""
attr txtPath = "images/New Textures_test/"
attr txtExt = ".jpg"
buildingSide-->
case txtIdent == "":
setupProjection(0, scope.xy, '1, '1)
texture(myRandomTxt)
...
I tried moving the * around and including more and less of the file name but I get nothing in return. And the textures work if I assign a txtIdent value.