Hello guys!,

What would be the fastest solution to store all the face components for 
each object I select into its correspondent set?

I'm trying something like this:

mesh = maya.cmds.ls(selection=True, type='mesh')[0]
selection_list = OpenMaya.MSelectionList()
selection_list.add(mesh)
dag_path = selection_list.getDagPath(0)
mfn_mesh = OpenMaya.MFnMesh(dag_path)

v_count, ids = mfn_mesh.getTriangles()

but these are only triangle counts and vtx indexes, how could I have the 
full face element and store in a set ?

thank you !



-- 
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/24a2b1e9-f975-4461-97a1-e1155b235973n%40googlegroups.com.

Reply via email to