Hey guys, I am trying to figure out how to select a vertex ring or loop with python. The behavior I am trying to mimic is when you click on a vertex, then double click a vertex next to it, and you get that loop or ring selected. I cant seem to figure out how maya is doing this. The only built in fucntion I can find is polySelect but it seems to only want to do this based on edges, not verts.
Can you do the selection with as edges with polySelect, then convert to vertices?
ConvertSelectionToVertices