blender/release/scripts/presets/camera/Red_One_2K.py
Sergey Sharybin 4ea816837d Configurable sensor size:
- 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.
2011-11-04 14:36:06 +00:00

5 lines
150 B
Python

import bpy
bpy.context.object.data.sensor_width = 11.1
bpy.context.object.data.sensor_height = 6.24
bpy.context.object.data.sensor_fit = 'HORIZONTAL'