Custom shader node has a hammer on its icon 2003-11-27 - By deane@(protected)
Back On Tue, Nov 25, 2003 at 01:02:49PM -0800, Mike Mcaulay wrote: > Hello list. I'm creating a custom shader node. Although it seems to be > working correctly (I can connect it to a shading group and it will affect > the appearance of a mesh in the expected manner) it shows up in the > Multilister as a checkerboard with a claw hammer superimposed over it. I > assume this means its malformed in some way, but I can't find anything in > the docs to help me determine what the problem is. > > Does anyone know what the hammer means? Can anyone suggest where in the > docs I might look to find the answer to similar questions in the future?
The hammer means that your node has been classified as a 'utility' node, which is the default. The classification only determines how and where it gets displayed in the MultiLister and HyperShader: it has no other effect on the node.
To change the classification, specify it as a string in the final parameter of the MFnPlugin::registerNode() call. Eg:
MString classification = "shader/surface";
pluginFn.registerNode( "myShader", myShader::id, myShader::creator, myShader::initialize, MPxNode::kDependNode, &classification );
If you don't want your shader to show up in the Multilister or HyperShader at all, then use an empty classification string ("").
For the current list of valid classification strings, complain to Alias. The documentation for MFnPlugin::registerNode() says to see the docs for the 'getClassification' and 'listNodeTypes' MEL commands, but neither of those describes them, either. I've been complaining about this for about 3 years now, but still no change.
=========================================================================== - deane Gooroos Software: Plugging you into Maya
Visit http://www.gooroos.com for more information
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- List-help: <mailto:listar@(protected)?Subject=help> List-archive: <http://www.highend3d.com/maya/devarchive/>
|
|