I trying to write my first node in python.
I need to find the N vertice around each vertex. So I though using the getConnectedFaces function to find the faces and then convert the faces to vertice.
I don't know how to initiate the MItMeshVertex. All the exemple I found on the internet are based on user selection. I need to use the inMesh connection with is the input of my node.
Here is my code so far
Thank you very much for your help
meshMDagPath = mFnMesh.dagPath() # return MDagPath object
inMeshMItMeshVertex = OpenMaya.MItMeshVertex(meshMDagPath)
# Get the faces connected to the vertex
connectedFacesIndices = OpenMaya.MIntArray()