Hello there!
I have a quick question for you guys, hope you can help me! do you know
if there is a way in maya to select an object and "explode" it into separate objects
based on each polygon face? I ve been trying with extract but then Ineed to select
each face and it becomes ultra long... does someone know a way or has a script
to achieve this? I am using maya 2015btw... thanks!
Replies
import maya.cmds as mc cLst = mc.ls(sl=True) faces = mc.polyEvaluate(cLst,f=True) def divLag(b): mc.polyChipOff (cLst[0]+'.f[0:%d]'%faces,kft=False,dup=False) mc.polySeparate (cLst,rs=True,n='piece#') vLst = mc.ls(sl=True) return vLst print divLag(faces)since I am at the beginning of my learning curve about python in Maya, any comments would be appreciated!
http://urbanizone.wordpress.com/2014/10/30/explode-object-by-face-python-script-maya/
Thank you very much
-Manu
Sasan