global proc shBoundHider() { string $currentSelection[]= `ls -sl`; string $bounds[]; int $index = 0; string $children[] = `listRelatives -ad -type "transform" -children "hider"`; for($child in $children) { if(`gmatch $child "*bound*"`) { $bounds[$index] = $child; $index++; } } if (`size($bounds)` != 0) { hide $bounds; } else { print "no bounds in XML/n"; } select -r $currentSelection; }