•  
  • Helping you upgrade your CG career

    How to get selected vertices in the same order that it was selected (in mel or cmds)

    0
    votes

    In Maya, while in component mode, I make some vertex selections - one after the other like for example vertex 240, then vertex 127 and then vertex 280. Now in script editor python tab, I use

    cmds.ls(sl=True)
    # Result: [u'pSphere1.vtx[127]', u'pSphere1.vtx[240]', u'pSphere1.vtx[280]'] # 

    It prints the selected vertices, which is fine. But the vertices are ordered like the smallest number first. Is there some flag which will make it print in the same order that I selected?

    asked 3 Years ago by
    Avatar image of CG Helpline user greaseparty

    CGH Score : 0
    0 Comments :
    Add a Comment for this question
    Please Login or Register to add comment

    Submit your Answer :




    SUBMIT

    Page rendered in 0.1253 seconds. Memory usage : 3.93MB.