attr height = 10 const buildingtex = fileRandom("assets/buildingtex*") Lot--> Building(comp.index) Building(myIndex)--> case height == 10 : Texture1 else: Texture2. Texture1-->setupProjection(0, scope.xy, scope.sx, scope.sy) projectUV(0) texture(buildingtex)
const buildingtex = fileRandom("assets/buildingtex/myFacade*.jpg")
color(rand(0,1),rand(0,1),rand(0,1))
Facade1--> ... Facade2-->... Facade3-->... RandomFacade--> 30% : Facade1 30% : Facade2 else: Facade3
Hi !
then, you forgot to define the filesearch as a 'const'.const buildingtex = fileRandom("assets/buildingtex/myFacade*.jpg")