|
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
|
|
|
|
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.
|
|
|
|
I was referring to the Maya API. But I got it :) Thanks
|
|
|