problem to list my selection on vertex

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  10 October 2004
problem to list my selection on vertex

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 October 2004
to get vertices name, use `ls -sl -flatten`
  10 October 2004
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 October 2004
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.
mike hovland
lead technical artist

Life beats down and crushes the soul... art reminds you that you have one. - Stella Adler
  10 October 2004
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
sorry for my bad English. ush
  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:22 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.