title: Get vertex as single array
body: <p>I need to get all the selected vertices and store them in an array so I can loop through and find out information about each vert. </p>
  
  <p>Although I cannot figure this out.</p>
  
  <pre><code>sel = cmds.ls(sl=1)
  print sel
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>//[u'pCube1.vtx[50:53]', u'pCube1.vtx[74:77]']
  </code></pre>
  
  <p>More or less I need my 'sel' variable to print out this:</p>
  
  <pre><code>pCube1.vtx[50]
  pCube1.vtx[51]
  pCube1.vtx[52]
  pCube1.vtx[53]
  pCube1.vtx[74]
  pCube1.vtx[75]
  pCube1.vtx[76]
  pCube1.vtx[77]
  </code></pre>
  
  <p>Does anyone know how to do this without literally stripping the string apart? I think that's a very messy way around it and would like to know if there's another possibility! Maybe with the Maya API using OpenMaya?</p>