Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Blender Python perspective camaera

def main(context):
    
    if context.region_data.view_perspective in  {'PERSP','ORTHO'}: 
        context.region_data.view_perspective = 'CAMERA'
    else:                            
        context.region_data.view_perspective = 'PERSP'
    return {'FINISHED'}
Source by blender.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #Blender #Python #perspective #camaera
ADD COMMENT
Topic
Name
4+1 =