# Help! Trying to get material properties exported!

**URL:** https://forum.highend3d.com/t/help-trying-to-get-material-properties-exported/6784
**Category:** Maya
**Tags:** mel
**Created:** [October 22, 2001, 7:49pm UTC](https://forum.highend3d.com/t/help-trying-to-get-material-properties-exported/6784 "2001-10-22T19:49:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![indeed-356](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/i/b77776/32.png) [@indeed-356](https://forum.highend3d.com/u/indeed-356)
#### Post date: [October 22, 2001, 7:49pm UTC](https://forum.highend3d.com/t/help-trying-to-get-material-properties-exported/6784/1 "2001-10-22T19:49:40Z")

</div>

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

---

<div class="post-metadata">

### Author: ![glocker](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@glocker](https://forum.highend3d.com/u/glocker)
#### Post date: [October 23, 2001, 3:20pm UTC](https://forum.highend3d.com/t/help-trying-to-get-material-properties-exported/6784/2 "2001-10-23T15:20:43Z")

</div>

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-
