// Creation Date: Mar-02-2002 // // Author: // // ------------------------- // --------------------------- // Klaus Stangl // Student@TU Graz // Demoartist/Developer // Educator@Siliconstudio Graz // www.worldofmaya.com // office@worldofmaya.com // ----------------------------- // // Script Name: // customNURBSCube.mel // // Syntax: // customNURBSCube() // // Tested with: // Maya 4.5 for NT // // Example: // customNURBSCube; // // Description: // // // For more infos read the documentation on www.worldofmaya.com or mail! //--------------------------------------- global proc customNURBSCube() { string $customNurbsCubeName; string $customNurbsCubeShapeName; $customNurbsCubeName = `createNode transform -n "nurbsCube#"`; $customNurbsCubeShapeName = `createNode nurbsSurface -n "nurbsCubeShape#" -p $customNurbsCubeName`; setAttr -k off ".v"; setAttr ".vir" yes; setAttr ".vif" yes; setAttr ".dvu" 0; setAttr ".dvv" 0; setAttr ".cpr" 4; setAttr ".cps" 4; setAttr ".cc" -type "nurbsSurface" 3 3 0 2 no 6 0 0 0 1 1 1 17 -0.16666666666666666 -0.083333333333333329 0 0.083333333333333329 0.16666666666666666 0.25 0.33333333333333331 0.41666666666666669 0.5 0.58333333333333337 0.66666666666666663 0.75 0.83333333333333337 0.91666666666666663 1 1.0833333333333333 1.1666666666666667 60 1.5672232499999998 -1.5 1.5672232499999996 -2.1755142132207084e-010 -1.5 1.5672232497824483 -1.5672232499999996 -1.5 1.5672232499999998 -1.5672232499999996 -1.5 1.5672232499999998 -1.5672232500000001 -1.5 1.1102230246251565e-016 -1.5672232499999998 -1.5 -1.5672232499999996 -1.5672232499999998 -1.5 -1.5672232499999996 -3.3306690738754696e-016 -1.5 -1.5672232500000001 1.5672232499999996 -1.5 -1.5672232499999998 1.5672232499999996 -1.5 -1.5672232499999998 1.5672232500000001 -1.5 -6.6613381477509392e-016 1.5672232499999998 -1.5 1.5672232499999996 1.5672232499999998 -1.5 1.5672232499999996 -2.1755142132207084e-010 -1.5 1.5672232497824483 -1.5672232499999996 -1.5 1.5672232499999998 1.5672232499999998 -0.49999999995 1.5672232499999996 -3.3306690738754696e-016 -0.49999999995 1.5672232500000001 -1.5672232499999996 -0.49999999995 1.5672232499999998 -1.5672232499999996 -0.49999999995 1.5672232499999998 -1.5672232500000001 -0.49999999995 1.1102230246251565e-016 -1.5672232499999998 -0.49999999995 -1.5672232499999996 -1.5672232499999998 -0.49999999995 -1.5672232499999996 -3.3306690738754696e-016 -0.49999999995 -1.5672232500000001 1.5672232499999996 -0.49999999995 -1.5672232499999998 1.5672232499999996 -0.49999999995 -1.5672232499999998 1.5672232500000001 -0.49999999995 -6.6613381477509392e-016 1.5672232499999998 -0.49999999995 1.5672232499999996 1.5672232499999998 -0.49999999995 1.5672232499999996 -3.3306690738754696e-016 -0.49999999995 1.5672232500000001 -1.5672232499999996 -0.49999999995 1.5672232499999998 1.5672232499999998 0.49999999995 1.5672232499999996 -3.3306690738754696e-016 0.49999999995 1.5672232500000001 -1.5672232499999996 0.49999999995 1.5672232499999998 -1.5672232499999996 0.49999999995 1.5672232499999998 -1.5672232500000001 0.49999999995 1.1102230246251565e-016 -1.5672232499999998 0.49999999995 -1.5672232499999996 -1.5672232499999998 0.49999999995 -1.5672232499999996 -2.2204460492503131e-016 0.49999999995 -1.5672232500000001 1.5672232499999996 0.49999999995 -1.5672232499999998 1.5672232499999996 0.49999999995 -1.5672232499999998 1.5672232500000001 0.49999999995 -6.6613381477509392e-016 1.5672232499999998 0.49999999995 1.5672232499999996 1.5672232499999998 0.49999999995 1.5672232499999996 -3.3306690738754696e-016 0.49999999995 1.5672232500000001 -1.5672232499999996 0.49999999995 1.5672232499999998 1.5672232499999998 1.5 1.5672232499999996 -2.1755142132207084e-010 1.5 1.5672232497824483 -1.5672232499999996 1.5 1.5672232499999998 -1.5672232499999996 1.5 1.5672232499999998 -1.5672232500000001 1.5 1.1102230246251565e-016 -1.5672232499999998 1.5 -1.5672232499999996 -1.5672232499999998 1.5 -1.5672232499999996 -3.3306690738754696e-016 1.5 -1.5672232500000001 1.5672232499999996 1.5 -1.5672232499999998 1.5672232499999996 1.5 -1.5672232499999998 1.5672232500000001 1.5 -6.6613381477509392e-016 1.5672232499999998 1.5 1.5672232499999996 1.5672232499999998 1.5 1.5672232499999996 -2.1755142132207084e-010 1.5 1.5672232497824483 -1.5672232499999996 1.5 1.5672232499999998 ; setAttr ".nufa" 4.5; setAttr ".nvfa" 4.5; connectAttr ($customNurbsCubeShapeName+".iog") ":initialShadingGroup.dsm" -na; }