Solved! Go to Solution.
texPath = "assets/myTextures/" const textureIndex = rint(rand(1, 3)) @StartRule Lot --> alignScopeToAxes(y) s(1,1,1) center(xz) i("builtin:cube") comp(f) {front : Face("front") | back : Face("back") | all: Face("other") } Face ( sideSelector ) --> case sideSelector == "front" || sideSelector == "back" : setupProjection(0, scope.xy, '1, '1) projectUV(0) texture ( texPath + "frontback" + textureIndex + ".jpg" ) else : DoSomethingElse.
texPath = "assets/myTextures/" const textureIndex = rint(rand(1, 3)) @StartRule Lot --> alignScopeToAxes(y) s(1,1,1) center(xz) i("builtin:cube") comp(f) {front : Face("front") | back : Face("back") | all: Face("other") } Face ( sideSelector ) --> case sideSelector == "front" || sideSelector == "back" : setupProjection(0, scope.xy, '1, '1) projectUV(0) texture ( texPath + "frontback" + textureIndex + ".jpg" ) else : DoSomethingElse.