URGENT : Merge with API (C++ and / or Python)

63 views
Skip to first unread message

justin hidair

unread,
Apr 11, 2017, 3:37:03 AM4/11/17
to Python Programming for Autodesk Maya
I'm going nut, I can no longer deal with the API, how the fuck Am I suppose to merge things of an existing mesh already instanced in MFnMesh() within a node, how!?

recreating the mesh is too, too redundant... I tried ..

adding polygons piece by piece with MFnMesh::addPolygon() ? I tried, and the mergeTolerance thing didn't even worked , tears are flowing..

Marcus Ottosson

unread,
Apr 12, 2017, 4:13:23 PM4/12/17
to python_in...@googlegroups.com
I think your questions are less likely to be ignored if you glance over some of the suggestions on this page.

http://www.catb.org/~esr/faqs/smart-questions.html

Just a thought.

kevco...@gmail.com

unread,
Apr 12, 2017, 11:55:05 PM4/12/17
to Python Programming for Autodesk Maya
I can certainly understand your frustration. I'm there like every day with the api, haha. Elaborate more on the problem you're having. I assume you're trying to merge vertices?

Cedric Bazillou

unread,
Apr 13, 2017, 3:35:38 PM4/13/17
to Python Programming for Autodesk Maya
Im not sure what is your problem?
Sure learning the API takes time ( it can be worse: try to look at 3dsmax SDK which is really low level, with parts missing or unexposed...)

Basically your answer would be append components:
rip from your mesh array :
  • points /
  •  face index / 
  • normals / or uv /
append them into one bigger array ( just be sure to add on the index array an offset / stride )
and later create with MFNMesh.create

Something pretty trivial to do, you just need more experience?
Reply all
Reply to author
Forward
0 new messages