Accessing volume checkbox of a camera in the Stereoscopy section Is there a way to check/uncheck the volume checkbox in the stereoscopy tab in the settings of a camera via the Blender Python API?



Update:

    bpy.context.space_data.show_stereo_3d_cameras = False
    bpy.context.space_data.show_stereo_3d_convergence_plane = False
    bpy.context.space_data.show_stereo_3d_volume = True


I saw in the console that these are the properties I want to change. But I can´t find a way to change them using the Blender API because the properties are read-only according to the documentation. Anyone an idea on how to change them?
You can cycle through the areas of the bpy.context.screen untill you find an area with the type VIEW_3D.

import bpy

areas = bpy.context.screen.areas

for area in areas:
    if area.type == "VIEW_3D":
        area.spaces[0].show_stereo_3d_cameras           = False
        area.spaces[0].show_stereo_3d_convergence_plane = False
        area.spaces[0].show_stereo_3d_volume            = True
        area.spaces[0].stereo_3d_volume_alpha           = 0.5