Say I have a Mix Shader in a node setup.

Say I have a Wave Texture connected to the 'fac' input on this said Mix Shader.

I'm assuming that this functionality isn't built into Blender, so how can I use Python to select the faces that are a certain shader from the Mix Shader?

Thanks in advance.

  • 1
    $\begingroup$ Could you be more precise? Materials are assigned to faces, but shading properties belongs to the surface points. Usually shaders are masked out with the input of the Mix shader, in your case the Wave texture. $\endgroup$ – Carlo Feb 18 '16 at 9:08
  • $\begingroup$ @Carlo I don't know exactly what you're asking me to say. $\endgroup$ – Cubit Feb 18 '16 at 14:25
  • $\begingroup$ Just to add more information about what you would like to achieve, because at the moment I cannot figure it out clearly. Think about a single-quad plane with a wave texture: I can see black and white areas, but the truth is that the face is only one. You would not be able to select non-existing geometry. $\endgroup$ – Carlo Feb 18 '16 at 15:08
  • $\begingroup$ @Carlo Yes, but if the plane were subdivided, would there be a way to select the vertices that are expressly in the white areas, for example? $\endgroup$ – Cubit Feb 19 '16 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.