Re: [Maya-Python] Create a MItMeshVertex using a set of vertex

2016-01-17 Thread Tuan Nguyen
Some how i figure it out, i will post the code snippet here if anyone got interested Name of MFnSingleIndexedComponent class confused me import maya.OpenMaya as om #Get active list selList= om.MSelectionList() om.MGlobal.getActiveSelectionList(selList) dagpath = om.MDagPath() sellist.getDagPath

[Maya-Python] Create a MItMeshVertex using a set of vertex

2016-01-16 Thread illunara
Hi everybody I want to query the border vertexs of an mesh, then create another MItMeshVertex from it. Then i looked into maya's doc and found this constructor might does what i need : MItMeshVertex (const MDagPath &polyObject, MObject &component=MObject::kNullObj, MStatus *ReturnStatus=NULL)