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
Replies
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 into a string.
To get selected objects names you would use ( `ls -sl -o -long`; ) or for all mesh objects in the scene you could use ( `ls -g -o`; ).
To get how many edges there are in a mesh use ( polyEvaluate -e "meshName"; ).
Then just use the rand command to get a random value within the number of edges that are in the mesh.