View Full Version : Selecting all vertices

03 March 2003, 09:10 PM
I have basicly been messing arround with this for an hour or so and reading up all I can in the mel docs... but I just can't figure this out.

I just want to select all the vertcies in the currently selected object. I can get to vertex component mode and all that but I don't about selecting all the vertcies.

I studied the script editor history and it keeps pointing me to use the select command (obviously) but I have no clue on how to get it select all the verticies without telling it all the individual vertcies (which therefore limits the script to one model)

Any help would be greatly apreciated. :eek:

03 March 2003, 07:57 AM
Use polyEvaluate -v to get the number of vertices. Then use the select command to select them, as in:

int $count[] = `polyEvaluate -v myObj`;
select ("myObj.vtx [0:" + ($count[0] - 1) + "]");


03 March 2003, 09:40 AM
you can also do it like that:

select -r ($myObj + ".vtx ");


03 March 2003, 03:34 AM
Thanks! I will play arround with that when I get a chance

CGTalk Moderation
01 January 2006, 05: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.