Another mel question

Hello all,

I have a quick question maybe someone can help me answer.

In Maya 7.0, is there an easy way to, if I select a vertex or group of vertex, get the name of the poly object the vertex are apart of?

Thanks for any help!

-Jason

you could do a couple of things.


string $buff[];
string $verts[]= `ls -sl -l `;
tokenize $verts[0] "." $buff;
print $buff[0]

where $buff[0] is the returned transform object.

or just use the -o flag to return the shape object itself

string $objs[] = `ls -sl -l -o`

hope that helps

Mark