1
$\begingroup$

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?

$\endgroup$
0

1 Answer 1

2
$\begingroup$
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?

$\endgroup$

Not the answer you're looking for? Browse other questions tagged .