How can I extract the data the user entered into my custom material's fields when I'm parsing an .mb with the C++ Maya API in my importing app? (I suspect I already have access to an MObject that contains the user's input, but don't know how to extract it)
Here's the situation in greater detail:
...but these extracted datafields are MObject's, and I don't know how to extract the data the user entered into the custom material instance in Maya.
What's the right approach here?
Here's the missing link I was looking for:
MFnDependencyNode::findPlug("datafieldName") returns an MPlug, which then provides access to the user-entered data.
(I was searching for names like "attribute" and "datafield" -- it didn't occur to me to look for anything called a "plug")