其他分享
首页 > 其他分享> > blender api 获取当前3d视图矩阵

blender api 获取当前3d视图矩阵

作者:互联网

 import bpy
 C=bpy.context
 
 sns=C.screen
 areas=sns.areas
 area=None

 for i in areas:
     if i.type=='VIEW_3D':
         area=i
         break
         
 spaces=area.spaces
 for i in spaces:
     if i.type=='VIEW_3D':
         space=i
         break
         
 region=space.region_3d
 
 print( region.view_matrix )            

  

标签:area,api,region,3D,视图,spaces,blender,type,areas
来源: https://www.cnblogs.com/chenyalin/p/15312902.html