Is there a way to get the polyListComponentConversion to return a list of faces
instead of the mesh.f[0:1] result. can you flatten that easily?
what I would like is
[myMesh.f[0], myMesh.f[1]]
import maya.cmds as mc
def faceLoop():
selectedEdges = mc.ls(orderedSelection=True, long=True)
for edge in selectedEdges:
newFaces = mc.polyListComponentConversion(edge, fromEdge=True,
toFace=True,)
print 'NEW FACES: ', newFaces
faceLoop()
# NEW FACES: [u'myMesh.f[0:1]']
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.