If I do:
print(some_node.type)
I get things such as MIX_SHADER
but if I do:
print(some_node)
I get
<bpy_struct, ShaderNodeMixShader("Mix Shader.001") at 0x7fdb7da7f808>
Barring the use of regexes, is there a way to get the type of the bpy_struct
- in other words ShaderNodeMixShader
?
so I can use it for templating code later?