I often have trouble with the Blender API to figure out the “base structure” required for a particular setting.
For example, I wanted to set “show_relationship_lines = False”. With google, I arrived pretty quickly to the API page for View3DOverlay, and determined that I need to set SOMETHING.show_relationship_lines = False.
It then took an embarassingly long time googling various other settings on this API page to find some example code on stackexchange where somebody set some other setting, and I finally discovered that SOMETHING in this case needs to be context.space_data.overlay.
SOMETHING = context.space_data.overlay # this was difficult to find SOMETHING.show_relationship_lines = False
So my question is, is there a way to use the API better to more efficiently figure out the actual python code required as the base structure on any given API page?