I need to programatically modify the value of sun light
From the picture, it seems we can code it from
bpy.data.node_groups["Shader Nodetree"].nodes["Emission"].inputs[1].default_value = 1.2
however, the code produce an error that
>>> bpy.data.node_groups["Shader Nodetree"].nodes["Emission"].inputs[1].default_value = 2
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
KeyError: 'bpy_prop_collection[key]: key "Shader Nodetree" not found'
I found a similar post it is related to changing the material, but mine question is related to the sunlight, how would i do it ?