How to get data from an upstream node in maya?
问题 I have a maya node myNode , which creates a shadeNode , which inMesh attribute is connected to shapeNode.outMesh and has an attribute distance . myNode.outMesh -> shapeNode.inMesh myNode.distance = 10 Then i have a command, which works on the shape node, but requires the distance argument, which it does by iterating over the inMesh connections: MPlugArray meshConnections; MPlug inMeshPlug = depNodeFn.findPlug("inMesh"); inMeshPlug.connectedTo(meshConnections, true, false); // in connections