version "2012.1" texPath = "assets/roofs/" const textureIndex = rint(rand(0, 2)) @StartRule Lot --> cleanupGeometry(all, 0.1) Houses Houses --> alignScopeToAxes() comp(f){ vertical: Facade | aslant: Roof } Roof --> alignScopeToGeometry(zUp, any, world.lowest) setupProjection(0, scope.xy, 3, 3, 1) projectUV(0) texture ( texPath + "Pantile_" + textureIndex + ".tga" )
Solved! Go to Solution.