Hey guys,

I am trying to delete faces from my Mfnmesh using MFnMesh.deleteFace() 
command but it seems to be not working.

Here is my code:

import maya.OpenMaya as OpenMaya

name = "outputShape"

list = OpenMaya.MSelectionList()
node = OpenMaya.MObject()
list.add(name)
list.getDependNode(0, node)

meshFn = OpenMaya.MFnMesh(node)

meshFn.deleteFace(14)
meshFn.updateSurface()

It does absolutely nothing, can anyone tell me if there is another way to 
do it in API or am I doing something wrong?

Thank you.

D.

-- 
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/ab0e93cf-f6e2-4654-97fa-77ed51bf5b44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to