Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if range(1,10) only nine in a directionbricks will be produced
- for y in range(1,10):
- print 'doing row' + str(y)
- for z in range(1,10):
- currentName = 'brick' + str(y) + str(z)
- plg.polyCube(d = 2,sx = 2,sy = 2, sz= 4, name = currentName)
- if bool(y&1):
- plg.setAttr(currentName +'.translateZ', (z*2)+.1)
- else:
- plg.setAttr(currentName +'.translateZ', (z*2)+.6)
- plg.setAttr(currentName +'.translateY', (y)+.1)
- rockifier(currentName, 3, 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement