Logo
Explore Help
Register Sign In
griefith/test
1
0
Fork 0
You've already forked test
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
caeea212cffbf352df2d27e67690aaed4e4cd336
test/release/scripts/presets/tracking_camera/Fullframe.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
142 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
Fix T92559: Tracking camera presets don't work New tracking-camera presets d486ee2dbdd3 used wrong code because I copied them from the camera-presets. Now they set the right properties again, the values stay the same as before. Differential Revision: https://developer.blender.org/D13139
2021-11-09 09:44:26 +01:00
camera = bpy.context.edit_movieclip.tracking.camera
camera.sensor_width = 36
camera.units = 'MILLIMETERS'
camera.pixel_aspect = 1
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1196ms Template: 2ms
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