- import maya.cmds as cmds
- verts = cmds.polyListComponentConversion( fe=True, tv=True )
- cmds.select(verts)
- clstr = cmds.CreateCluster()
- loc = cmds.spaceLocator()
- cmds.parentConstraint('cluster1Handle',loc[0])
- cmds.delete(cn=True)
- cmds.delete('cluster1Handle')