View Full Version : how to list the selected vertexs correctly
JasonJune2009 12-07-2009, 09:23 AM for example
there are 3 vertexs : vtx[0] vtx[1] vtx[2]
the order of my selection : vtx[1] vtx[2] vtx[0]
then do : ls -sl -fl;
it results : vtx[0] vtx[1] vtx[2] ,
but it's not what i want,i want it result vtx[1] vtx[2] vtx[0] , like the order of my seletion.
if I selected pSphere2,then shift selected pSphere1,then do : ls -sl;
it ruselted : pSphere2 pSphere1
why it doesn't work on components,
how to solve it,is there any way to list components.
|
|
jaydru
12-07-2009, 09:55 AM
yeah mel returns components based of the index, you cant (to my knowledge) get them to return based of the selection order, you could hack it though, either undo in mel and find out what was selected each time or maybe fire up a scriptjob when you start selecting verts to track whats being selected, nither of wich are paticulary eligant though :(
kojala
12-07-2009, 10:01 AM
thats the way maya does it, only way to get components in selected order was to create a tool for it, I think.. there has been a discussion about this here before
ewerybody
12-08-2009, 09:44 AM
There have been lots and lots of discussions about that ...
I just searched "selection order" and got: vert selection order (http://forums.cgsociety.org/showthread.php?f=89&t=589650&highlight=selection+order)
leading to this thread (http://forums.cgsociety.org/showthread.php?f=89&t=455797) where IsoparmB posted a script to get component selection order out of the scripthistory. here (http://forums.cgsociety.org/showthread.php?f=89&t=88947)wrend posted a script that undos step by step and collects selections on the way.
So history tells: If you can: make it a SciptCtx!
The other ways are all a bit whacky. As you cannot even simply query the entire undoStack.
But was there some development meanwhile? Does someone know? *bump*
CGTalk Moderation
12-08-2009, 09:44 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.