blender/release/scripts/presets/camera/Blender.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
140 B
Python

import bpy
bpy.context.object.data.sensor_width = 32
bpy.context.object.data.sensor_height = 18
bpy.context.object.data.sensor_fit = 'AUTO'