I'm trying to understand the blender tips you get when you hover and object. I think i am misunderstanding something, because I can't use the commands blender are giving me.
For example, I want to change the world background color to white with a blender script.
If i hover the setting I get a python command. I can also go to the scripting tab and see what python commands blender executes:
bpy.data.node_groups["Shader Nodetree"].nodes["Background"].inputs.default_value = (1, 0, 0, 1)
But if i copy that to a python file and execute it with blender it does not work:
KeyError: 'bpy_prop_collection[key]: key "Shader Nodetree" not found'