[...] ipo = Blender.Ipo.New("Object", "ipo_camera") cux = ipo.addCurve("LocX") cuy = ipo.addCurve("LocY") cuz = ipo.addCurve("LocZ") curx = ipo.addCurve("RotX") cury = ipo.addCurve("RotY") curz = ipo.addCurve("RotZ") for f, line in enumerate(lines): x, y, z, pan, tilt, roll = [float(n) for n in line.split()] cux[f] = x cuy[f] = y cuz[f] = z curx[f] = (90 + tilt) / 10 cury[f] = 0 curz[f] = (pan - 90) / 10
i wrote a script which reads a text file with camera key frames. why do i have to divide the rot curve values by 10 to get it working? i thought i have to use radians here but it seems to be degrees/10. strange!
(i still use blender 2.43!)
<edit> ah! it’s mentioned in the docs. i have missed this. i posted too early once again. </edit>