forked from bartvdbraak/blender
0673f86334
* Switch to using Canon sensor type instead of camera models. There are a ton of camera models that reuse the same sensor so it's just confusing and forever incomplete to try and cover all models. * Delete all redundant Canon camera models.. * Leave only the Canon camera models that are special, that is have non regular sensor sizes. * Fix a few errors in some Canon models. * Capitalize a few unrelated sensor presets for consistency. * Added presets for GoPro and iPhone. Their distortion models and shutter isn't really supported ATM but tracker is robust enough to give reasonable tracking and solving results. Presets are from Daniel Salazar and Sebastian Koenig, thanks! Differential Revision: https://developer.blender.org/D264
5 lines
154 B
Python
5 lines
154 B
Python
import bpy
|
|
bpy.context.object.data.sensor_width = 23.760
|
|
bpy.context.object.data.sensor_height = 13.365
|
|
bpy.context.object.data.sensor_fit = 'HORIZONTAL'
|