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 ?
C.object.datainto python console. If it printsbpy.data.lamps["ItsCalledSomethingElse"]it won't respond the the name "Lamp". – batFINGER Oct 16 '17 at 05:01./blender -b -P ./myScript.py– mcExchange Aug 17 '18 at 10:07