////////////////////////////////////////////////////////////////////////// // Procedure Name: // // neo // // Description: // // creates a new neo node, hooks it up to a mesh, // // and adds the new object to the initial shading group // // Return Value: // // the created objects // ////////////////////////////////////////////////////////////////////////// global proc string[] neo() { // Load the plug-in if necessary // ------------------------------ if ( !`pluginInfo -query -loaded neoNode.so` ) { loadPlugin "neoNode.so"; } string $neoName = `createNode neo`; $neoName = `rename $neoName "makeNeo#"`; string $transName = `createNode transform`; $transName = `rename $transName "neo#"`; string $meshName = `createNode -parent $transName mesh`; $meshName = `rename $meshName "neoShape#"`; connectAttr ( ( $neoName + ".outMesh" ), ( $meshName + ".inMesh" ) ); sets -addElement initialShadingGroup $meshName; select -r $transName; return { $transName, $neoName }; } // end of script