=========================== - Fixed compilation error with OpenCOLLADA - Added sample preset for tracking camera. - Fixed bug with wrong order of preset properties loading/saving.
11 lines
223 B
Python
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
|