title: How to transmit MPxData to the compute function of Maya
body: <p>I have a Maya api (in c++) that is defining an MPxNode, and some main code which is instancing this MPxNode.<p>How can I pass data to the MPxNode so that the data is accessible from the compute method ?
  From main code:</p>
  
  <pre><code>myMpxObj=dagMod.createNode("myMpxNode");
  </code></pre>
  
  <p>In MyMPxNode:</p>
  
  <pre><code>MStatus myMpxNode::compute( const MPlug&amp; plug, MDataBlock&amp; block )
  {
  // How to get here values from the main part ?
      return MS::kUnknownParameter;
  }
  </code></pre>
  
  <p>Thanks.</p>