andymoorer
11-30-2009, 10:16 PM
Ok, mel noob here with another tricky selection question.
I need a user selection of verts on two separate meshes. I can create a list of the selected verts easily enough:
string $sel[] = `ls -fl -sl`;
But I also need to get a list of the two parent meshes. I can get the parent of each vertex in a list...
$parents = `listRelatives -p $sel`;
But of course the list created is the parent shapes over and over, listed once per vertex. Sloppy, that, I want just a simple list of two objects.
Can I filter my existing selection of verts into a selection of parent meshes?
I need a user selection of verts on two separate meshes. I can create a list of the selected verts easily enough:
string $sel[] = `ls -fl -sl`;
But I also need to get a list of the two parent meshes. I can get the parent of each vertex in a list...
$parents = `listRelatives -p $sel`;
But of course the list created is the parent shapes over and over, listed once per vertex. Sloppy, that, I want just a simple list of two objects.
Can I filter my existing selection of verts into a selection of parent meshes?
