View Full Version : vertices : last selectioned
Nico3D75 04-18-2007, 01:56 PM Hello,
I would like to make a mel for know what is the last vertex selectioned...
anyone can help me ?
Many thanks.
|
|
illych sanchez
04-19-2007, 12:48 PM
hi,
string $sels[] = `ls -sl -fl`;
int $tot = size($sels);
print $sels[$tot -1]//// last vertex in selection
print $sels;////////////all vertex
hope this helps
regards
pramod
isoparmB
04-20-2007, 12:49 AM
Nope, that will give you the vertice with the highest ID value. Getting the selection order of selected vertices has been a recurring issue, since maya will return the vertices according to numerical order with the ls -sl -fl command.
These threads might point you in the right direction regarding your particular problem:
http://forums.cgsociety.org/showthread.php?f=89&t=455797
http://forums.cgsociety.org/showthread.php?f=89&t=485206
illych sanchez
04-20-2007, 05:10 AM
Hi Isoparm,
thnx ..my mistake
regards
pramod
CGTalk Moderation
04-20-2007, 05:10 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.