1

I want to set the view to the XY-plane by using python script, so I have this as a result:

enter image description here

How can I do this?

user8790
  • 87
  • 5

1 Answers1

2
import bpy
for area in bpy.context.screen.areas:
    if area.type == 'VIEW_3D':
        override = bpy.context.copy()
        override['area'] = area
        bpy.ops.view3d.view_axis(override, type='TOP')
        break

Found here: Set orthographic view using python?

Session
  • 21
  • 1