I tried to set the camera rotation like this:
camera = bpy.data.objects['Camera'] camera.rotation_mode = 'XYZ' camera.rotation_euler = [1.1117, 0, 0.762]
The values are changed in Blender, but they are in a different color, and the rotation does not appear while rendering.
But after a mouse click on the changed rotation values, the rotation does appear after rendering... why? Why is it not set in Blender? Is there another way to set the rotation?