View difference between Paste ID: H1mPpuuy and
SHOW: | | - or go back to the newest paste.
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