View Full Version : problem to list my selection on vertex
10-13-2004, 05:38 AM
string $sel = `ls -sl`;
int $numsel = size($sel);
i'm selected 4 vertex on my object n the result only show 2.
can anyone tell me what mistake i've made??
10-13-2004, 06:54 AM
to get vertices name, use `ls -sl -flatten`
10-13-2004, 05:29 PM
hi Panupat... `ls -sl -fl` works. thanks. but now i'm having a new problems. when i list down the vertex i selected. it deosn't follow my selection order. which means, when i select vtx, vtx and vtx, it will list down vtx,vtx,vtx.
how can i list down the vertex number follow my selection order??
10-13-2004, 08:21 PM
You can't. There have been discussions on ways to do this by monitoring the undo que, and rebuilding the list from that, but it is difficult and hacky, at best.
Look at this thread: http://www.cgtalk.com/showthread.php?t=88947&highlight=selection+order
There is code in there to return the component selection in the the order you selected them.
This thread is what I've been searching for.
I used scriptjob instead of undobuffer, and it did't work well.
Now I got answer for this.
Thank you for your good imformation mhovland:)
01-19-2006, 01:00 PM
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-2015, Jelsoft Enterprises Ltd.