PDA

View Full Version : Selecting all vertices


JamesDeschenes
03-16-2003, 08: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:

bigfatMELon
03-17-2003, 06: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) + "]");

-jl

klod
03-17-2003, 08:40 AM
you can also do it like that:

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

Klod

JamesDeschenes
03-18-2003, 02:34 AM
Thanks! I will play arround with that when I get a chance

CGTalk Moderation
01-14-2006, 04: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.