Atom Posted April 17, 2015 Share Posted April 17, 2015 Hi All, I have been trying to determine what type of material I have in any given node. For instance the difference between a Clay material and a Mantra Surface. Each node does have a .shaderType() method but they both return the same value, vopnetwork... Is there any other method for distinguishing the difference between material nodes other than grunt checking for the presence or absence of parameters using TRY/EXCEPT? Thanks Quote Link to comment Share on other sites More sharing options...
andyc Posted April 18, 2015 Share Posted April 18, 2015 What about node.type().description() ? Surface Shader Builder Material Shader Builder Layered Surface Output Shaders etc.. Quote Link to comment Share on other sites More sharing options...
Atom Posted April 18, 2015 Author Share Posted April 18, 2015 Thank you, I think that can work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.