📜  Blender Python 透视相机 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:28.887000             🧑  作者: Mango

代码示例1
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'}