Python get shader tree in headless mode?
I found out that each object has shader node_tree. In order to manipulate HDRI, I need to change Shader Tree of World object.
Shader Tree is attached to World object too, here is how I get Shader Node Tree of world object in headless mode:
bpy.data.worlds['World'].node_tree