Above is the material I've created. I exported my model to .obj from Blender. From a Python script (I have Blender compiled as a Python Module), I import my .obj file.
I then attempt to set the Noise Texture 'W' property:
import bpy
bpy.ops.import_scene.obj( filepath = PATH_TO_MY_OBJ)
bpy.context.object.name = "obbb"
obj = bpy.data.objects["obbb"]
My material is called Material. How can I access the Noise Texture node and change the value of W?



Materials Propertiestab -- as I mentioned, I am doing this all from Python; Blender is not open/running. – pookie Oct 10 '21 at 14:53bpy.context.objectto access your object. So how aboutprint(bpy.context.object.material_slots[:])- does it display an empty list[]? If not, how aboutprint(bpy.context.object.material_slots[0].material.node_tree)- does it display something without an error? If so, how aboutprint(bpy.context.object.material_slots[0].material.node_tree.get("Noise Texture"))? – Markus von Broady Oct 10 '21 at 14:59Noise Texturenode: print(bpy.data.materials..node_tree.nodes.keys()) outputs: ['Principled BSDF', 'Material Output', 'Normal Map'] – pookie Oct 10 '21 at 16:25