Help! Trying to get material properties exported!

I'm writing an exporter to get maya models into our game.
I have read the posts that describe how to get the texture
file names out of maya and it works fine. However,
I haven't figured out how to get the material properties
like Diffuse, Ambient, etc. out of maya.
I'd appreciate any help concerning this problem.

Thanks

The information you are looking for are attributes on the shader. If you are using the API, you'll have to use MFnDependencyNode.findPlug and MPlug.getValue to find the info.

g-