Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete objects
- fn fenches =
- (
- num1 = 10
- for i = 1 to num1 do
- (
- pos1 = 0
- pos2 = 0
- pos3 = 0
- wood1 = chamferbox length:12 width:12 height:50 fillet:0.8 pos: [i*pos1,i*pos2,pos3]
- wood2 = instance wood1 pos: [(i*pos1+40),(i*pos2+0),(pos3+0)]
- wood3 = chamferbox length:10 width:30 height:10 fillet:0.9 pos: [(i*pos1+20), (i*pos2), (pos3+30)]
- nail1 = chamfercyl radius: 2 height: 15 fillet: 0.8 pos: [i*pos1,pos2+7.5,(pos3+40)]
- nail1.rotation.x_rotation = 90
- nail2 = instance nail1 pos:[i*pos1+40, i*pos2+7.5, (pos3+40)]
- sharp1 = prism length1: 30 length2: 30 length3: 30 height: 13 pos: [i*pos1-12.7,i*pos2+6.5,pos3+49]
- sharp1.rotation.x_rotation = 90
- sharp2 = instance sharp1 pos: [i*pos1+27.7,i*pos2+6.5,pos3+49]
- fench1 = wood1 + wood2 + wood3 + nail1 + nail2 + sharp1 + sharp2
- delete wood2
- delete wood3
- delete nail1
- delete nail2
- delete sharp1
- delete sharp2
- scale1 = 1
- scale2 = 1
- scale3 = 1
- fench1.scale = [scale1,scale2,scale3]
- move fench1 [i*80,i,0]
- )
- )
- fn fenchconnector =
- (
- num2 = 9
- for i = 1 to num2 do
- (
- wood4 = chamferbox length:10 width:30 height:10 fillet:0.9 pos: [(i*pos1+20)*3, (i*pos2), (pos3+30)]
- move wood4 [i*80,i,0]
- )
- )
- fenches()
- fenchconnector()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement