Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """___________________
- Mesh Seperator
- version_0.2
- cwisbg
- 2/15/2012
- ______________________
- """
- from pymel.core import*
- import time
- start = time.clock()
- sl = selected()
- faceLength = len(sl[0].f)
- face = []
- a = 0
- b = 249 # Split by b faces
- incra = b + 1
- x = 1
- z = 0
- while x:
- face.append(sl[0].f[a:b])
- polyChipOff(face[:], ch=1, kft=1, dup=0)
- a += incra
- b += incra
- face = []
- if b >= faceLength:
- x -= 1
- polySeparate(sl[0], ch=0)
- elapsed = (time.clock() - start)
- print "done, took:", elapsed
Advertisement
Add Comment
Please, Sign In to add comment