Discussion:
[Maya-Python] api delete issues
m***@gmail.com
2018-11-19 21:14:41 UTC
Permalink
hi!

maya api does not delete componnents...
...
meshFn.deleteFace( index )
...
does not work!

PM:
P L E A S E H E L P.
thanks.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/57037449-7906-4efd-bad4-62ce3982a0a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ravi Jagannadhan
2018-11-19 21:44:20 UTC
Permalink
Do you have a scene and some code that people can look at?

"There are no dumb questions" - Carl Sagan.
Post by m***@gmail.com
hi!
maya api does not delete componnents...
...
meshFn.deleteFace( index )
...
does not work!
P L E A S E H E L P.
thanks.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/57037449-7906-4efd-bad4-62ce3982a0a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5B780D43-7104-4BE5-8C89-2473DAC7A8FD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-11-20 21:21:32 UTC
Permalink
Post by Ravi Jagannadhan
Do you have a scene and some code that people can look at?
"There are no dumb questions" - Carl Sagan.
Post by m***@gmail.com
hi!
maya api does not delete componnents...
...
meshFn.deleteFace( index )
...
does not work!
P L E A S E H E L P.
thanks.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/57037449-7906-4efd-bad4-62ce3982a0a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
no, almost!!!
this is my code:

MObject oThis = thisMObject();

MDataHandle origMeshSrcHandle = data.inputValue(inMeshAttr);
MObject inMesh = origMeshSrcHandle.asMesh();
//inMesh:
MFnMesh inMesh_fn(inMesh, &stat);

MFnMeshData meshDataFn;
MObject outMeshObj = meshDataFn.create();
MFnMesh outMeshFn;
outMeshFn.copy(inMesh, outMeshObj);

outMeshFn.deleteFace(12);

MPlug oMPlug(oThis, outMeshAttr);
oMPlug.selectAncestorLogicalIndex(0, outsAttr);
oMPlug.setMObject(outMeshObj);
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d0a2a35d-95db-425d-8db1-8a56d51aadac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...