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.