Not quite sure what I’m doing wrong here, I’m (hopefully) making a script that will add a material node setup that I use a lot, and could do with automating:
bpy.types.Material.use_nodes = True
bpy.types.Material('Material').use_nodes = True
I would be immensely greatful if someone could help me around this problem, and maybe somehow let me know how to substitute ‘Material’ for the selected material?
If you haven’t guessed, I’m very new to the whole coding thing…