blender python perspective camaera

Solutions on MaxInterview for blender python perspective camaera by the best coders in the world

showing results for - "blender python perspective camaera"
Matteo
18 Jan 2020
1def main(context):
2    
3    if context.region_data.view_perspective in  {'PERSP','ORTHO'}: 
4        context.region_data.view_perspective = 'CAMERA'
5    else:                            
6        context.region_data.view_perspective = 'PERSP'
7    return {'FINISHED'}
8