select edge loop python


#1

Hello

I am trying to select an edge loop based in just one edge selected, but I can´t find the way.
Can someone help me?

Thanks you


#2

You can use the polySelect command: polySelect documentation[```
import maya.cmds as cmds

sphere = cmds.polySphere()
cmds.polySelect(sphere, edgeLoop=300)