Hi someone told me that It is impossible to select any random edge if we are in edge mode i.e we have to select that edge manually we cannot do it through script. see the screenshot I want to select that edge. Any command to do that? SEE THE ATTACHMENT
What? That's nonsense, of course you can make selections through scripts. For example, this would select edges 0-10 on the mesh named "pSphere1": select -r "pSphere1.e[0:10]" ; You just need to get the name of the mesh you want to make the selection on, the index numbers of the edges you want to select, and combine them…
The above posted script should select the edge randomly, is that not what you wanted? If you want to select a specific loop then will need to know what you're trying to achieve since there are so many ways to go about it. You could for example select the edge closest to the camera/mouse, world/local position, normal…
Someone other guy helped me in this but this script is only selecting the end of the cylinder ( if it is closed) not the side edge as I mentioned in the screenshot. It looks like only selecting the 0 degree angle.