[Bf-python] Can you point me in the right direction? (Please don't delete without reading first)

Damir Prebeg blend.factory at gmail.com
Mon Apr 2 06:19:56 CEST 2012


this should work:

snip here:
#----------------------------------------------------------------

import bpy
import mathutils

from bpy import *
from mathutils import *

scene = bpy.context.scene
scene.frame_set(0)

vcam = bpy.context.scene.camera

vcam.data.lens = 36.417729
vcam.matrix_world =
mathutils.Matrix(([0.998222,0.001166,-0.059587,0.000000],
[0.046988,-0.630424,0.774827,0.000000],
[-0.036662,-0.776250,-0.629358,0.000000],
[-0.040563,19.938493,15.393408,1.000000]))
vcam.keyframe_insert('location')
vcam.keyframe_insert('scale')
vcam.keyframe_insert('rotation_euler')
vcam.data.keyframe_insert('lens')

#----------------------------------------------------------------

On 2 April 2012 04:33, Dan Eicher <dan at trollwerks.org> wrote:
> scene.frame_set() maybe?
>
> There's a link to the python api docs in the splash screen.
>
> Dan
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list