Controlling the viewing camera

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
lisabeeren
Posts: 13
Joined: Mon Oct 28, 2002 9:48 am

Controlling the viewing camera

Post by lisabeeren » Thu Oct 14, 2004 6:53 am

G'day,

I'm wanting to change the blender view window. Is there a way to access the transform, through which the viewport is viewed?

i.e. as a person interacts with my script, it changes what they are viewing. (i.e. while modelling, not during rendering)

also is there a way to lock the view, to stop them moving it around?

What blender module is this stuff in?

thanks

kitsu
Posts: 0
Joined: Sun Jun 06, 2004 8:08 am

Post by kitsu » Fri Oct 15, 2004 6:19 pm

Check the docs
<---
Under the python api is a module camera, checkout the example...

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX » Tue Jul 19, 2011 10:48 pm

i got the same question, but for Blender 2.5x

controlling a camera is not the problem, but how to change the VIEWPORT? the viewport is like a virtual camera, not a camera object. What i want is to move and rotate this virtual cam, similar to what the Fly Navigation does but scripted movement.

The only useful entry in API docs seems to be bpy.ops.view3d.move, but no clue how to use it

http://www.blender.org/documentation/bl ... iew3d.move
I'm sitting, waiting, wishing, building Blender in superstition...

Post Reply