macroScript PreSkinCleaning category:"RobG3D Scripts" ( if selection.count >= 1 then ( local selArr = selection as array for i in selArr do ( if superClassOf i == GeometryClass then ( --object may not be geo, but should be, so if it isn't we 'continue' --Feel free to add or remove your own things to do per-object ResetXForm i ResetXForm i --collapsestack i macros.run "Modifier Stack" "Convert_to_Poly" i.pivot = [0,0,0] i.backfacecull = on $.deleteIsoVerts() --weld redundant verts, uncomment to use /* vertCount = polyOp.getNumVerts i vertArr = #() for n in 1 to vertCount do (append vertArr n) polyOp.weldVertsByThreshold i vertArr */ ) ) --animationRange = interval 60 170 --Addition 'scene preparations' can go here. I want to turn off bones and helpers whenever --I am ready to bind, but anything more can be added hideByCategory.helpers = true hideByCategory.bones = true ) )