Advertisement
jeffwincek

The Rockifier 0.3.2

Oct 6th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement