[英]Blender python scripting
I want to use blender
to programmatically move the camera around the scene while remaining focused on a particular location. 我想使用
blender
以编程方式在场景中移动相机,同时保持对特定位置的关注。 What's the easiest way to make the camera look at an object without having to specify rx
, ry
,and rz
. 使相机无需指定
rx
, ry
和rz
即可最简单地查看对象的方法是什么。 I'm looking for the Python function to call and not do it through the blender
GUI. 我正在寻找要调用的Python函数,而不是通过
blender
GUI来实现。 I am using blender 2.65
. 我正在使用
blender 2.65
。
The easiest way to make the camera look at an object is the Edit Object
Actuator . 使摄像机观察物体的最简单方法是“
Edit Object
致动器” 。 There you can replace Add Object
to Track To
and then you just need to specify an object. 在那里,您可以替换“
Add Object
以Track To
,然后只需指定一个对象即可。
Perhaps you can change it in the game with a python script , using EditObjectActuator.track_object
也许您可以使用
EditObjectActuator.track_object
使用python脚本在游戏中更改它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.