Home Technical Talk

beginner Maya mel question regarding selection of children based on namespace

polycounter lvl 7
Offline / Send Message
mcuevas polycounter lvl 7
I have the following script that selects all the children of the selected object but only those with the namespace "*Control1" (shoulderControl1, fingerControl1 etc)


// select all the children of the selected object
select -hi ;

// place all selected objects with a specific name into an array
string $selected[ ] = `ls -sl "*Control1"`;

// replace current selection with the array
select -r $selected ;



It works and does what I need it to do but I was wondering if there is there an easier/shorter way to do this?

Thanks!

Replies

Sign In or Register to comment.