Hello
I've implemented several nodes to be used as shading nodes. 
The problem is, when I click "Graph materials on selected nodes" or "Input 
and output connections" in hypershade, the graph is expanded just up to my 
nodes, and hides every other node upstream to mine.
I have to select all the nodes and click "Input and output 
connections" again to show complete network.

Here is how I register the nodes:

mplugin.registerNode( shader, OpenMaya.MTypeId(nodeIDs[shader]), lambda: 
OpenMayaMPx.asMPxPtr( shaderClass() ), template_Initializer(shaderClass), 
OpenMayaMPx.MPxNode.kDependNode, "shader/surface" )
or:
mplugin.registerNode( shader, OpenMaya.MTypeId(nodeIDs[shader]), lambda: 
OpenMayaMPx.asMPxPtr( shaderClass() ), template_Initializer(shaderClass), 
OpenMayaMPx.MPxNode.kDependNode, "utility/color" )

I also register drag'n'drop behaviours, which work fine.
The nodes do not have any compute(), they're just dummy placeholders for 
attrobutes.

thanks

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to