// names: Akira Taguchi + Kozo Ikeda (all right reserved) // date: Mar 16th 2006 // title: MoldFeeder & ShellFinder //status: v0.1 working ////////////////////////////////////////////////////////////////////////////////////////// //MoldFeeder // //variables int $face1 = 8; int $face2 = 39; float $ext = 10; string $n01 = "mold_00"; string $nShape01 = "mold_00Shape"; string $nSubd01 = ("nurbsToSubdShape1HistPoly.f["+ $face1 +":"+ $face2 +"]"); //create NurbsSphere first, then convert it to SubdivSphere. sphere -n $n01; nurbsToSubdiv -rn false -mp true -ch off -aut on -maxPolyCount 1000 ("|"+ $n01 +"|"+ $nShape01); delete ("|"+ $n01 +"|"+ $nShape01); //select desirable faces on the surface. subdGivenIntoPolyMode $n01 1 0 0 0; hilite $n01; select -r $nSubd01; //extend selected faces using local axis. polyExtrudeFacet -ch 1 -kft 0 -pvx -0.9214197099 -pvy -0.3918057978 -pvz 0.4336012304 -tx 0 -ty 0 -tz 0 -rx 0 -ry 0 -rz 0 -sx 1 -sy 1 -sz 1 -ran 0 -divisions 1 -twist 0 -taper 0.1 -off 0 -ltz 0 -ws 0 -ltx 0 -lty 0 -lrx 0 -lry 0 -lrz 0 -lsx 1 -lsy 1 -lsz 1 -ldx 1 -ldy 0 -ldz 0 -w 0 -gx 0 -gy -1 -gz 0 -att 0 -mx 0 -my 0 -mz 0 -sma 30 $nSubd01; setAttr "polyExtrudeFace1.localTranslate" -type double3 0 0 $ext; ////////////////////////////////////////////////////////////////////////////////////////// //ShellFinder // //variables int $face3 = 0; int $face4 = 47; string $n02 = "shell_00"; string $nShape02 = "shell_00Shape"; string $nSubd02 = ("nurbsToSubdShape2HistPoly.f["+ $face3 +":"+ $face4 +"]"); //create NurbsSphere first, then convert it to SubdivSphere. sphere -n $n02; xform -t 30 0 0 -s 6 6 6; nurbsToSubdiv -rn false -mp true -ch off -aut on -maxPolyCount 1000 ("|"+ $n02 +"|"+ $nShape02); delete ("|"+ $n02 +"|"+ $nShape02); //select desirable faces on the surface. subdGivenIntoPolyMode $n02 1 0 0 0; hilite $n02; select -r $nSubd02; //extend and delete selected faces using. polyExtrudeFacet -ch 1 -kft 0 -pvx -0.9214197099 -pvy -0.3918057978 -pvz 0.4336012304 -tx 0 -ty 0 -tz 0 -rx 0 -ry 0 -rz 0 -sx 1 -sy 1 -sz 1 -ran 0 -divisions 1 -twist 0 -taper 0.1 -off 0 -ltz 0 -ws 0 -ltx 0 -lty 0 -lrx 0 -lry 0 -lrz 0 -lsx 1 -lsy 1 -lsz 1 -ldx 1 -ldy 0 -ldz 0 -w 0 -gx 0 -gy -1 -gz 0 -att 0 -mx 0 -my 0 -mz 0 -sma 30 $nSubd02; delete $nSubd02; //////////////////////////////////////////////////////////////////////////////////////////