Well, if you're using mj polytools, this will clean up the insane amount of expressions it writes. Just make it a shelf button.
Code:
string $expList[] = `ls -et "expression"`;
string $exp;
for ($exp in $expList)
{
if (`objExists $exp`)
{
if (`match "polySplit[0-9]" $exp` != "")
{
// get the loop split node
string $LSNode[] = `listConnections -d 1 ($exp + ".objectMsg")`;
string $mjShape[] = `listConnections -d 1 -sh 1 ($LSNode[0] + ".inputPolymesh")`;
delete $exp $LSNode[0] $mjShape[0];
}
}
};
"Terminat Bora Diem, Terminal Auctor opus."