Thread: gi joe
View Single Post
# 11 16-07-2005 , 03:59 PM
NitroLiq's Avatar
Moderator
Join Date: Nov 2002
Location: New York
Posts: 2,133
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."