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
8dbbac43bb38442e69e8dcd6a02c424ffb7855df
blender/release/scripts/presets/camera/Nexus_5.py

6 lines
165 B
Python
Raw Normal View History

Camera presets changes - Fixed typo in Canon C300 camera name - Added preset for Nexus5
2014-02-19 18:09:50 +06:00
import bpy
Fix T41081: Presets not working on pinned properties panels. Preset operators should avoid using `bpy.context.object.data` as a base path to properties. This path is not available in the buttons context when using pinned datablocks! Instead use the specific `bpy.context.camera` and `bpy.context.lamp.sky` paths now, which lead to the correct datablocks in any case.
2014-07-18 11:34:35 +02:00
bpy.context.camera.sensor_width = 4.5
bpy.context.camera.sensor_height = 3.37
bpy.context.camera.lens = 3.91
bpy.context.camera.sensor_fit = 'HORIZONTAL'
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 2923ms 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