Files
test/release/scripts/presets/tracking_camera/Blender.py
Sergey Sharybin 15943cf292 Camera trackign integration
===========================

- Fixed compilation error with OpenCOLLADA
- Added sample preset for tracking camera.
- Fixed bug with wrong order of preset properties loading/saving.
2011-07-14 15:52:00 +00:00

11 lines
223 B
Python

import bpy
camera = bpy.context.edit_movieclip.tracking.camera
camera.sensor_width = 32.0
camera.sensor_height = 18.0
camera.units = 'MILLIMETERS'
camera.focal_length = 35.0
camera.k1 = 0.0
camera.k2 = 0.0
camera.k3 = 0.0