Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is there a python function that sets ortho view such that X and Y axes are visible - the equivalent of numpad 7?
Thanks in advance!
You can override the context when calling view_axis() operator:
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
override = bpy.context.copy()
override['area'] = area
Required, but never shown