I’m trying to change my workspace then make the VIEW_3D in that workspace fullscreen,
using this as a reference this is what I’ve come up with so far:
bpy.context.window.workspace = bpy.data.workspaces[workspace_name]
for screen in bpy.data.workspaces[workspace_name].screens:
window=bpy.context.window_manager.windows[0]
for area in screen.areas:
if area.type == 'VIEW_3D':
override = {'window': window, 'screen': screen, 'area': area}
bpy.ops.screen.screen_full_area(override)
break
but this doesn’t work and crashes blender,
how do I achieve what I’m trying to do?