Advertisement
jeffwincek

The Waller 0.1.0

Oct 6th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #if range(1,10) only nine in a directionbricks will be produced
  2. for y in range(1,10):
  3.     print 'doing row' + str(y)
  4.     for z in range(1,10):
  5.         currentName = 'brick' + str(y) + str(z)
  6.         plg.polyCube(d = 2,sx = 2,sy = 2, sz= 4, name = currentName)
  7.         if bool(y&1):
  8.             plg.setAttr(currentName +'.translateZ', (z*2)+.1)
  9.         else:
  10.             plg.setAttr(currentName +'.translateZ', (z*2)+.6)
  11.         plg.setAttr(currentName +'.translateY', (y)+.1)
  12.         rockifier(currentName, 3, 4)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement