Module: Camera | ./Camera.py | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The Blender Camera module This module provides access to Camera objects in Blender Example: from Blender import Camera, Object, Scene c = Camera.New('ortho') # create new ortho camera data c.lens = 35.0 # set lens value cur = Scene.getCurrent() # get current Scene ob = Object.New('Camera') # make camera object ob.link(c) # link camera data with this object cur.link(ob) # link object into scene cur.setCurrentCamera(ob) # make this camera the active
|