Currently i am trying to change the viewport of the 3D View window using a python script. I am using this function
bpy.ops.view3d.viewnumpad(type='TOP');
But it always get this error
RuntimeError: Operator bpy.ops.view3d.viewnumpad.poll() failed, context is incorrect
The same error is gotten when I use this function
bpy.ops.view3d.view_persportho();
Waht is the problem?
type='TOP'and it didn't work, what error you're getting ? – Chebhou Jul 24 '15 at 18:27