forked from bartvdbraak/blender
4ea816837d
- Added support of variable size sensor width and height. - Added presets for most common cameras, also new presets can be defined by user. - Added option to control which dimension (vertical or horizontal) of sensor size defines FOV. Old behavior of automatic FOV calculation is also kept. - Renderer, viewport, game engine and collada importer/exporter should deal fine with this changes. Other exporters would be updated soon.
5 lines
150 B
Python
5 lines
150 B
Python
import bpy
|
|
bpy.context.object.data.sensor_width = 27.9
|
|
bpy.context.object.data.sensor_height = 18.6
|
|
bpy.context.object.data.sensor_fit = 'HORIZONTAL'
|