Have problem similar to this but that workaround does not work for me. Empty bpy.data.node_groups
I need to access mapping node with Python so I can change values. This code worked for several times I used script but suddenly it does not work anymore.
bpy.data.node_groups["NodeGroup"].nodes["Mapping"].rotation = math.radians(180)
Also looking at python output when changing values manually and looking at tooltip path output I should use something like this.
bpy.data.node_groups["Shader NodeTree"].nodes["Mapping"].rotation = math.radians(180)
But I get error that Shader Nodetree does not exist.
Can anyone explain what is going on here, am I missing something here?