Is there a MEL command to select clusterHandles by type???

Is there a MEL command to select clusterHandles by type???

rflack
Contributor Contributor
912 Views
3 Replies
Message 1 of 4

Is there a MEL command to select clusterHandles by type???

rflack
Contributor
Contributor

I can select clusters, sure! Can't seem to find a way to select all cluster Handles in a scene! 😕

Thanks.

0 Likes
Accepted solutions (1)
913 Views
3 Replies
Replies (3)
Message 2 of 4

osidedan
Advocate
Advocate
Accepted solution

For a MEL command, this should work:

$allClusters = `ls -exactType "cluster"`;
select -cl;
for($cluster in $allClusters)
{
    $clusterTransform = `listConnections -t transform $cluster`;
    select -add $clusterTransform;   
}

Another option is to go Select>All by Type>Clusters, but if you need it MEL based, the above should work!

Message 3 of 4

rflack
Contributor
Contributor

It's a work of art, thanks! 🙂

Message 4 of 4

osidedan
Advocate
Advocate

You're welcome, I'm glad it worked!

0 Likes