View difference between Paste ID: ZAAz0mvL and
SHOW: | | - or go back to the newest paste.
1
# takes one object selected and rockifies it. 
2
# needs the wiggler to run 
3
# recommended to run the proportionizer on the object first
4
# 4 is a good number for howManyIterations, 5 is pushing it 
5
6
def rockifier(whichOne, howMuch,howManyIterations):
7
    for x in range(1,howManyIterations):
8
    	#uncomment the next two lines if you want the bricks to be less rectalinear 
9
    	#if x == 1 or x == 2:
10
    	#	plg.polyAverageVertex(whichOne, iterations = 2)
11
        wiggler(whichOne, howMuch*x)
12
        plg.polySmooth( name = whichOne)
13
    plg.polyAverageVertex(whichOne, iterations = 2)
14
15
16