
The (tracking) camera presets have not been updated in the last 7 or more years, so they are very outdated. I found it pointless to have a few specific camera models in the list and instead add the most commonly used sensor sizes/film sizes. This way the list is shorter, easier to maintain/becomes later outdated, and is more user friendly for most people who don't own any of the specific cameras. I added the Crop Factor to the Beginning of the name, so it gets sortet in the correct order and presets are easier to find based on the size. Reviewed By: #render_cycles, #motion_tracking, brecht, sergey Differential Revision: https://developer.blender.org/D10739
4 lines
130 B
Python
4 lines
130 B
Python
import bpy
|
|
bpy.context.camera.sensor_width = 36
|
|
bpy.context.camera.sensor_height = 24
|
|
bpy.context.camera.sensor_fit = 'HORIZONTAL' |