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 and again, until complete network is drawn.
Here is how I register the nodes (Python API):
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 attributes.
thanks