简体   繁体   中英

Blender python scripting

I want to use blender to programmatically move the camera around the scene while remaining focused on a particular location. What's the easiest way to make the camera look at an object without having to specify rx , ry ,and rz . I'm looking for the Python function to call and not do it through the blender GUI. I am using blender 2.65 .

The easiest way to make the camera look at an object is the Edit Object Actuator . There you can replace Add Object to Track To and then you just need to specify an object.

Perhaps you can change it in the game with a python script , using EditObjectActuator.track_object

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM