View Full Version : problem to list my selection on vertex

10-13-2004, 04:38 AM
string $sel[] = `ls -sl`;

int $numsel = size($sel);


print $sel;


print $numsel;




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, 05:54 AM
to get vertices name, use `ls -sl -flatten`

10-13-2004, 04: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[1], vtx[10] and vtx[5], it will list down vtx[1],vtx[5],vtx[10].

how can i list down the vertex number follow my selection order??

10-13-2004, 07: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:

There is code in there to return the component selection in the the order you selected them.

10-14-2004, 02:40 AM
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:)

CGTalk Moderation
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.