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 Properties
tab -- as I mentioned, I am doing this all from Python; Blender is not open/running. $\endgroup$bpy.context.object
to 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"))
? $\endgroup$