I’m trying o figure out what’s the most reliable way to check if a certain material feature is used or not.
For example I want to know if a material is using Displacement. I tried
mat.texmap_displacement_on but sometimes that seems to return true when the material doesn’t have anything plugged into displacement. Maybe the materials I have to work with are weird idk.
How can I just check in script if there is anything plugged into the Displacement node?
PS: I don’t want to know if there is a -texture- plugged into Displacement, I want to know if -anything at all- is plugged into a material’s input node (in this case if anything is plugged into the displacement node).