I am trying to toggle fullscreen and 3dview sidebar panels from python (shortcut 'shift+alt+space' and 'n' respectively). I found these commands, but I can't get them to work:
bpy.ops.screen.screen_full_area(True) # toggle full screen? bpy.ops.wm.context_toggle(data_path="", module="") # toggle 3dview sidebar panels?
Any ideas on how I can do this?
EDIT: This post asks my exact question: https://blenderartists.org/t/show-sidebar-3d-print-toolbox-with-python-api/1241410/2 . The answer is an operator with this line in the execute method:
context.space_data.show_region_ui ^= True
But this doesn't work for me :-(