Hi Ben,
Thank you for your reply. I don’t think that would work, since I’m not able create a “rand” inside a split. If I should do that I would need to create I relative {’rand(0.2,0.8) : Shape} and as far I understand it, this will divide it by a ratio so 0.5 is center.
This is defiantly starting to get to me, I thought I found a solution by using the value as a function, and not as an attr
attr Building_setback_front = 10
attr Building_setback_back = 10
attr Building_setback_left = 10
attr Building_setback_right = 10
height = rand(5,10)
splitter = rand(2,10)
Building_Cluster-->
setback(Building_setback_right) {object.right : Footprint_2("X") | remainder :
setback(Building_setback_left) {object.left : Footprint_2("X") | remainder :
setback(Building_setback_front) {object.front : Footprint_2("Y") | remainder :
setback(Building_setback_back) {object.back : Footprint_2("Y") | remainder : Green_Area}}}}
Footprint_2(Direction_Index)-->
case (Direction_Index) == "X" : X_Split
else : Y_Split
X_Split-->
split(y) {10 : split {~splitter : test}*}
Or similar. I’ve tried all kinds off combinations, but nothing seems to work.
What I would like it do, different values to choose from like:
Splitter =
10% : 5
10% : 6
Else: 7
And not a rand between, but right now I’m back to zero, and it’s not working. Each side will get the same split value, but it will differ from side to side, that’s the best I can do at the moment.
At this pint I'm talking about the split itself, and not the extrusion 😉