[Solved] Access to shader name
Jack of Spades
Posts: 80
I'm trying to find a way to access the shader name as displayed on the Surfaces panel. I need to distinguish between different shaders that are all DzBrickMaterials. It looked like from another example I could do material.GetShader(), but that's coming back undefined. Help?
Screen Shot 2015-12-21 at 1.06.49 PM.png
634 x 416 - 55K
Post edited by Jack of Spades on
Comments
You use GetMaterialName() on DzMaterial. The following code will iterate through the surfaces of the selected item and give you their Shader names:
Thank you Cayman! That's exactly what I needed.