1. import maya.cmds as cmds
  2. verts = cmds.polyListComponentConversion( fe=True, tv=True )
  3. cmds.select(verts)
  4. clstr = cmds.CreateCluster()
  5. loc = cmds.spaceLocator()
  6. cmds.parentConstraint('cluster1Handle',loc[0])
  7. cmds.delete(cn=True)
  8. cmds.delete('cluster1Handle')