// CombineGroupToPoly // // Date: 2005/02/12 // Author: Dai Sato dstruevision@dstruevision.com http://www.dstruevision.com // Procedure Name: CombineGroupToPoly // // Description: This scripts enable you to combine all polygons and nurbs in a group to a polygon. // Also, you can adjust tessellation of Nurbs To Poly converting, and reduce polygons all at once. // If you want to adjust tessellation and Nurbs To Poly command manually, you can change line 37 and 67 // by your hand. global proc string cgtp_PolyUniter () { select -hierarchy; string $selectedObjects[] = `ls -sl`; string $allPolygons[] ={}; int $globalCount = 0; int $differentCount =0; int $progressMax = size($selectedObjects); int $check = `radioButtonGrp -q -select selectTessellationRadio`; float $cgtp_ChordHeight = `floatField -q -value cgtp_chordHeightField`; float $cgtp_Fractional = `floatField -q -value cgtp_fractionalField`; float $cgtp_MinimumEdge = `floatField -q -value cgtp_minimalEdgeField`; float $cgtp_3DDelta = `floatField -q -value cgtp_3dDeltaField`; float $cgtp_Count = `floatField -q -value cgtp_countField`; if(!($selectedObjects[0]=="")) { progressBar -edit -beginProgress -isInterruptable true -status "Calculation ..." -maxValue $progressMax cgtp_mainProgressBar; } for($i=0;$i