Hello
I have the following code:NewColor = [1,0,0,1]
GrundMaterialAussen = bpy.data.materials[“Lichtkügelchen Aussen.000”]
GrundMaterialInnen = bpy.data.materials[“Lichtkuegelchen Innen.000”]
MaterialGefunden = GrundMaterialAussen
Lichtkugel = bpy.data.objects[NameString]
if Lichtkugel.data.materials[0].node_tree.nodes[“Emission”].inputs[0].default_value != NewColor:
…
My problem is, that the if statement always returns false, even if the NewColor is like the existing color. For setting this color is no problem, it works with:Lichtkugel.data.materials[0].node_tree.nodes[“Emission”].inputs[0].default_value = NewColor
But to check it does not work!? How I have to put the if statment that it works?
Thank you very much for your help.