Logo
Explore Help
Register Sign In
Cr8-xyz/blender
1
0
Fork 0
You've already forked blender
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
d4ee07537e19902c18f6ae8cd5f8335e40a8b3dc
blender/release/scripts/presets/camera/Red_Epic.py

5 lines
150 B
Python
Raw Normal View History

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
import bpy
bpy.context.object.data.sensor_width = 30.0
bpy.context.object.data.sensor_height = 15.0
bpy.context.object.data.sensor_fit = 'HORIZONTAL'
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 475ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API