I can get a MeshVertex list of the connected vertices but I can't access to element of the returned list.
My first question is how to access to list element?
The returned list is >>>pPlaneShape2.vtx[72:73,102,105,133,136,165:166] but I don't really understand the information returned. I was expecting to get the index of 4 vertices that are connected to my face like >>>pPlaneShape2.vtx[102,105,133,136] , instead I have 6 index with some weird ":" things.. Does someone knows what it means?
thx
Code:
from pymel.core import * plane = ls('pPlane2')[0].getShape() faceSample = plane.f[100] cvtx= face.connectedVertices() print (cvtx) >>>pPlaneShape2.vtx[72:73,102,105,133,136,165:166] print (cvtx[0]) >>># Error: line 1: IndexError: file C:\Program Files\Autodesk\Maya2015\Python\lib\site-packages\pymel\core\general.py line 4400: Indexing only allowed on an incompletely specified component (ie, 'cube.vtx') #