/* * Advanced weighting script X * Wraith - Game extraction tools */ global proc WraithMesh_78c94515_00_BindFunc() { select -r WraithMesh_78c94515_00; select -add tag_origin; newSkinCluster "-toSelectedBones -mi 15 -omi true -dr 5.0 -rui false"; string $clu = findRelatedSkinCluster("WraithMesh_78c94515_00"); skinPercent -tv tag_origin 1.0 $clu WraithMesh_78c94515_00.vtx[0:104]; } global proc RunAdvancedScript() { catch(WraithMesh_78c94515_00_BindFunc()); } global proc NamespacePurge() { string $allNodes[] = `ls`; for($node in $allNodes) { string $buffer[]; tokenize $node ":" $buffer; string $newName = $buffer[size($buffer)-1]; catchQuiet(`rename $node $newName`); } } print("Currently binding the current model, please wait...\n"); NamespacePurge(); RunAdvancedScript(); print("The model has been binded.\n");