View difference between Paste ID: kCft9utc 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
    	if x == 1 or x == 2:
9
    		plg.polyAverageVertex(whichOne, iterations = 2)
10
        wiggler(whichOne, howMuch*x)
11
        plg.polySmooth( name = whichOne)
12
    plg.polyAverageVertex(whichOne, iterations = 2)
13
14
15