maya component id data
<p>Does anyone know how to obtain the data in maya called the component ID of the vertices.</p>

<p>I know how to get the vert number but the component ID on the vert is something that changes as the model has been changed. </p>

<p>It seems that there is data in the vertex but just can't find any command to extract it. Any help would be helpful. </p>

<p>I even tried using the maya api but this also just seem to give me the vertices index number and not the actual ID (which is not a sequence as the vertices indexes)</p>

<p>Thanks</p>

<p>try that, </p>

<pre><code>import maya.OpenMaya as om
sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(sel)
dag = om.MDagPath()
comp = om.MObject()
sel.getDagPath(0, dag, comp)
itr = om.MItMeshFaceVertex(dag, comp)
print '| %-15s| %-15s| %-15s' % ('Face ID', 'Object VertID', 'Face-relative VertId')
while not itr.isDone():
    print '| %-15s| %-15s| %-15s' % (itr.faceId(), itr.vertId(), itr.faceVertId())
    itr.next()
</code></pre>

<p>there are many solutions, i find this one.... src: <a href="http://tech-artists.org/forum/showthread.php?3649-OpenMaya-getting-the-current-componet-selection" rel="nofollow">Link</a></p>

python maya