blender/release/scripts/presets/camera/Blender.py
Brecht Van Lommel ea08a4d36b Tomato: camera sensor changes
* Rename "FOV Mode" to "Sensor Fit"
* Add sensor height back in presets, default to Horizontal fit for all presets
  except Blender, which uses Automatic.
* Some UI tweaks
2011-11-01 18:39:07 +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'