Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Get textures linked to a material?
  RSS 2.0 ATOM  

Get textures linked to a material?
Rate this thread
 
38488
 
Permlink of this thread  
avatar
  • wiegje
  • Posted: 08 January 2010 01:35 AM
  • Total Posts: 12
  • Joined: 18 August 2009 05:52 PM

how do i retrieve the textures that are set in a material? i.e. diffuse map, normal map, etc. I know that I have to look for “file” nodes that are linked to the “surfaceShader” node, but how do I filter them on type etc?

thanks



Replies: 0
avatar
  • geofffox
  • Posted: 08 January 2010 07:24 AM

If I understand your q .
Open the Hypershade and the Attributes editor.
double click the Material in Hypershade and see Attributes.
You can see the attributes by clicking the mapping button of the relevant item.
This follows the nodes in attributes editor,
(to the right of the fileName field- looks like a chequer board if unmapped and an arrow if mapped)
Another way:
Or in the work area of hypershade, graph the inputs and outputs of a material then click on an input to see Attributes in attribute editor.



Replies: 0
avatar
  • wiegje
  • Posted: 09 January 2010 02:10 AM

I was referring to the Maya API. But I got it :) Thanks



Replies: 0