View Single Post
# 4 22-03-2007 , 05:55 PM
jsprogg's Avatar
Lifetime Member
Join Date: Feb 2004
Location: Chicago
Posts: 1,712
https://www.maya3d.dk/Scripts/MJPolyTools/

go here and read the installation section it might help

I can tell you though if you install this it can leave a ton of crap (useless nodes behind ) and you might need to also use a cleanup script.

copy this into your script editor and then middle mouse drag it to your shelf to create a cleanup shortcut on your shelf.

-------------------------------------------------------------------
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];
}
}
};

----------------------------------------------------------------------


Last edited by jsprogg; 22-03-2007 at 05:59 PM.