diff options
Diffstat (limited to 'release/scripts')
38 files changed, 152 insertions, 152 deletions
diff --git a/release/scripts/presets/camera/1__colon__2.3_inch.py b/release/scripts/presets/camera/1__colon__2.3_inch.py index 829a060ab35..72548384401 100644 --- a/release/scripts/presets/camera/1__colon__2.3_inch.py +++ b/release/scripts/presets/camera/1__colon__2.3_inch.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 6.16 -bpy.context.object.data.sensor_height = 4.62 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 6.16 +bpy.context.camera.sensor_height = 4.62 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/1__colon__2.5_inch.py b/release/scripts/presets/camera/1__colon__2.5_inch.py index 3ddd240ab50..90f60e7d7f0 100644 --- a/release/scripts/presets/camera/1__colon__2.5_inch.py +++ b/release/scripts/presets/camera/1__colon__2.5_inch.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 5.76 -bpy.context.object.data.sensor_height = 4.29 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 5.76 +bpy.context.camera.sensor_height = 4.29 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/2__colon__3_inch.py b/release/scripts/presets/camera/2__colon__3_inch.py index edf3bbba2c9..46436970efc 100644 --- a/release/scripts/presets/camera/2__colon__3_inch.py +++ b/release/scripts/presets/camera/2__colon__3_inch.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 9.6 -bpy.context.object.data.sensor_height = 5.4 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 9.6 +bpy.context.camera.sensor_height = 5.4 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/4__colon__3_inch.py b/release/scripts/presets/camera/4__colon__3_inch.py index 6e38782c4d8..88346c01ef8 100644 --- a/release/scripts/presets/camera/4__colon__3_inch.py +++ b/release/scripts/presets/camera/4__colon__3_inch.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 17.31 -bpy.context.object.data.sensor_height = 12.98 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 17.31 +bpy.context.camera.sensor_height = 12.98 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Arri_Alexa.py b/release/scripts/presets/camera/Arri_Alexa.py index 2bdcf12240b..6a6cdfee12b 100644 --- a/release/scripts/presets/camera/Arri_Alexa.py +++ b/release/scripts/presets/camera/Arri_Alexa.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 23.760 -bpy.context.object.data.sensor_height = 13.365 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 23.760 +bpy.context.camera.sensor_height = 13.365 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Blackmagic_Cinema_Camera.py b/release/scripts/presets/camera/Blackmagic_Cinema_Camera.py index 402a5b30cbb..6fde30756da 100644 --- a/release/scripts/presets/camera/Blackmagic_Cinema_Camera.py +++ b/release/scripts/presets/camera/Blackmagic_Cinema_Camera.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 15.81 -bpy.context.object.data.sensor_height = 8.88 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 15.81 +bpy.context.camera.sensor_height = 8.88 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Blender.py b/release/scripts/presets/camera/Blender.py index 9fa4ab752e3..ca4906fbb39 100644 --- a/release/scripts/presets/camera/Blender.py +++ b/release/scripts/presets/camera/Blender.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 32 -bpy.context.object.data.sensor_height = 18 -bpy.context.object.data.sensor_fit = 'AUTO' +bpy.context.camera.sensor_width = 32 +bpy.context.camera.sensor_height = 18 +bpy.context.camera.sensor_fit = 'AUTO' diff --git a/release/scripts/presets/camera/Canon_1100D.py b/release/scripts/presets/camera/Canon_1100D.py index 54f2cf75b54..e665e9e95d5 100644 --- a/release/scripts/presets/camera/Canon_1100D.py +++ b/release/scripts/presets/camera/Canon_1100D.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 22.2 -bpy.context.object.data.sensor_height = 14.7 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 22.2 +bpy.context.camera.sensor_height = 14.7 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Canon_APS-C.py b/release/scripts/presets/camera/Canon_APS-C.py index 829e03cc5cf..95108b2187f 100644 --- a/release/scripts/presets/camera/Canon_APS-C.py +++ b/release/scripts/presets/camera/Canon_APS-C.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 22.3 -bpy.context.object.data.sensor_height = 14.9 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 22.3 +bpy.context.camera.sensor_height = 14.9 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Canon_APS-H.py b/release/scripts/presets/camera/Canon_APS-H.py index d5cc02f4e4a..d3b61d1aa46 100644 --- a/release/scripts/presets/camera/Canon_APS-H.py +++ b/release/scripts/presets/camera/Canon_APS-H.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 27.90 -bpy.context.object.data.sensor_height = 18.60 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 27.90 +bpy.context.camera.sensor_height = 18.60 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Canon_C300.py b/release/scripts/presets/camera/Canon_C300.py index 70c760c73b5..e22af779854 100644 --- a/release/scripts/presets/camera/Canon_C300.py +++ b/release/scripts/presets/camera/Canon_C300.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 24.4 -bpy.context.object.data.sensor_height = 13.5 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 24.4 +bpy.context.camera.sensor_height = 13.5 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Full_Frame_35mm_Camera.py b/release/scripts/presets/camera/Full_Frame_35mm_Camera.py index d3e141ba4d9..c8017331b28 100644 --- a/release/scripts/presets/camera/Full_Frame_35mm_Camera.py +++ b/release/scripts/presets/camera/Full_Frame_35mm_Camera.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 36 -bpy.context.object.data.sensor_height = 24 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 36 +bpy.context.camera.sensor_height = 24 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/GoPro_Hero3_Black.py b/release/scripts/presets/camera/GoPro_Hero3_Black.py index 9cea698d8ab..e294f802a02 100644 --- a/release/scripts/presets/camera/GoPro_Hero3_Black.py +++ b/release/scripts/presets/camera/GoPro_Hero3_Black.py @@ -1,6 +1,6 @@ import bpy -bpy.context.object.data.sensor_width = 6.16 -bpy.context.object.data.sensor_height = 4.62 -bpy.context.object.data.lens = 2.77 +bpy.context.camera.sensor_width = 6.16 +bpy.context.camera.sensor_height = 4.62 +bpy.context.camera.lens = 2.77 -bpy.context.object.data.sensor_fit = 'AUTO' +bpy.context.camera.sensor_fit = 'AUTO' diff --git a/release/scripts/presets/camera/GoPro_Hero3_Silver.py b/release/scripts/presets/camera/GoPro_Hero3_Silver.py index 1eee0750c2d..247bd7c4aaf 100644 --- a/release/scripts/presets/camera/GoPro_Hero3_Silver.py +++ b/release/scripts/presets/camera/GoPro_Hero3_Silver.py @@ -1,6 +1,6 @@ import bpy -bpy.context.object.data.sensor_width = 5.371 -bpy.context.object.data.sensor_height = 4.035 -bpy.context.object.data.lens = 2.77 +bpy.context.camera.sensor_width = 5.371 +bpy.context.camera.sensor_height = 4.035 +bpy.context.camera.lens = 2.77 -bpy.context.object.data.sensor_fit = 'AUTO' +bpy.context.camera.sensor_fit = 'AUTO' diff --git a/release/scripts/presets/camera/GoPro_Hero3_White.py b/release/scripts/presets/camera/GoPro_Hero3_White.py index 3d1f368aab0..948f838f5d6 100644 --- a/release/scripts/presets/camera/GoPro_Hero3_White.py +++ b/release/scripts/presets/camera/GoPro_Hero3_White.py @@ -1,6 +1,6 @@ import bpy -bpy.context.object.data.sensor_width = 5.76 -bpy.context.object.data.sensor_height = 4.29 -bpy.context.object.data.lens = 2.77 +bpy.context.camera.sensor_width = 5.76 +bpy.context.camera.sensor_height = 4.29 +bpy.context.camera.lens = 2.77 -bpy.context.object.data.sensor_fit = 'AUTO' +bpy.context.camera.sensor_fit = 'AUTO' diff --git a/release/scripts/presets/camera/Nexus_5.py b/release/scripts/presets/camera/Nexus_5.py index aa781782acb..36e741cbba5 100644 --- a/release/scripts/presets/camera/Nexus_5.py +++ b/release/scripts/presets/camera/Nexus_5.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.5 -bpy.context.object.data.sensor_height = 3.37 -bpy.context.object.data.lens = 3.91 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +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' diff --git a/release/scripts/presets/camera/Nikon_D3100.py b/release/scripts/presets/camera/Nikon_D3100.py index 238d9c22d12..b4ceb3aa721 100644 --- a/release/scripts/presets/camera/Nikon_D3100.py +++ b/release/scripts/presets/camera/Nikon_D3100.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 23.1 -bpy.context.object.data.sensor_height = 15.4 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 23.1 +bpy.context.camera.sensor_height = 15.4 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Nikon_DX.py b/release/scripts/presets/camera/Nikon_DX.py index a0505bf9b9c..dbe9e7fcc18 100644 --- a/release/scripts/presets/camera/Nikon_DX.py +++ b/release/scripts/presets/camera/Nikon_DX.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 23.6 -bpy.context.object.data.sensor_height = 15.8 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 23.6 +bpy.context.camera.sensor_height = 15.8 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Panasonic_AG-HVX200.py b/release/scripts/presets/camera/Panasonic_AG-HVX200.py index ee82cbe9bf0..71ad3c3a161 100644 --- a/release/scripts/presets/camera/Panasonic_AG-HVX200.py +++ b/release/scripts/presets/camera/Panasonic_AG-HVX200.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 4.68 -bpy.context.object.data.sensor_height = 2.633 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.68 +bpy.context.camera.sensor_height = 2.633 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Panasonic_LX2.py b/release/scripts/presets/camera/Panasonic_LX2.py index 8e0f844e507..d66e02e32d4 100644 --- a/release/scripts/presets/camera/Panasonic_LX2.py +++ b/release/scripts/presets/camera/Panasonic_LX2.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 8.5 -bpy.context.object.data.sensor_height = 4.78 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 8.5 +bpy.context.camera.sensor_height = 4.78 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Red_Epic.py b/release/scripts/presets/camera/Red_Epic.py index 14f4abaee90..5d71a69a33d 100644 --- a/release/scripts/presets/camera/Red_Epic.py +++ b/release/scripts/presets/camera/Red_Epic.py @@ -1,4 +1,4 @@ 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' +bpy.context.camera.sensor_width = 30.0 +bpy.context.camera.sensor_height = 15.0 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Red_One_2K.py b/release/scripts/presets/camera/Red_One_2K.py index ef2708f75b2..894aedcf9ea 100644 --- a/release/scripts/presets/camera/Red_One_2K.py +++ b/release/scripts/presets/camera/Red_One_2K.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 11.1 -bpy.context.object.data.sensor_height = 6.24 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 11.1 +bpy.context.camera.sensor_height = 6.24 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Red_One_3K.py b/release/scripts/presets/camera/Red_One_3K.py index 5ddff2746eb..9ac84c1485a 100644 --- a/release/scripts/presets/camera/Red_One_3K.py +++ b/release/scripts/presets/camera/Red_One_3K.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 16.65 -bpy.context.object.data.sensor_height = 9.36 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 16.65 +bpy.context.camera.sensor_height = 9.36 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Red_One_4K.py b/release/scripts/presets/camera/Red_One_4K.py index 8ab9b38cbd5..067322cd07e 100644 --- a/release/scripts/presets/camera/Red_One_4K.py +++ b/release/scripts/presets/camera/Red_One_4K.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 22.2 -bpy.context.object.data.sensor_height = 12.6 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 22.2 +bpy.context.camera.sensor_height = 12.6 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Samsung_Galaxy_S3.py b/release/scripts/presets/camera/Samsung_Galaxy_S3.py index 35670042e48..23eaea7cd27 100644 --- a/release/scripts/presets/camera/Samsung_Galaxy_S3.py +++ b/release/scripts/presets/camera/Samsung_Galaxy_S3.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.8 -bpy.context.object.data.sensor_height = 3.6 -bpy.context.object.data.lens = 3.70 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.8 +bpy.context.camera.sensor_height = 3.6 +bpy.context.camera.lens = 3.70 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Samsung_Galaxy_S4.py b/release/scripts/presets/camera/Samsung_Galaxy_S4.py index ae16d4172f9..cc929d26dac 100644 --- a/release/scripts/presets/camera/Samsung_Galaxy_S4.py +++ b/release/scripts/presets/camera/Samsung_Galaxy_S4.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.8 -bpy.context.object.data.sensor_height = 3.6 -bpy.context.object.data.lens = 4.20 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.8 +bpy.context.camera.sensor_height = 3.6 +bpy.context.camera.lens = 4.20 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Sony_A55.py b/release/scripts/presets/camera/Sony_A55.py index b0f172206fa..0468deb6d4c 100644 --- a/release/scripts/presets/camera/Sony_A55.py +++ b/release/scripts/presets/camera/Sony_A55.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 23.4 -bpy.context.object.data.sensor_height = 15.6 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 23.4 +bpy.context.camera.sensor_height = 15.6 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Sony_EX1.py b/release/scripts/presets/camera/Sony_EX1.py index 00708175b40..3c6b235f21e 100644 --- a/release/scripts/presets/camera/Sony_EX1.py +++ b/release/scripts/presets/camera/Sony_EX1.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 6.97 -bpy.context.object.data.sensor_height = 3.92 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 6.97 +bpy.context.camera.sensor_height = 3.92 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Sony_F65.py b/release/scripts/presets/camera/Sony_F65.py index e187828058b..e62b3511836 100644 --- a/release/scripts/presets/camera/Sony_F65.py +++ b/release/scripts/presets/camera/Sony_F65.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 24.33 -bpy.context.object.data.sensor_height = 12.83 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 24.33 +bpy.context.camera.sensor_height = 12.83 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Super_16_Film.py b/release/scripts/presets/camera/Super_16_Film.py index 1e42953bf05..4ca397a7e27 100644 --- a/release/scripts/presets/camera/Super_16_Film.py +++ b/release/scripts/presets/camera/Super_16_Film.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 12.52 -bpy.context.object.data.sensor_height = 7.41 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 12.52 +bpy.context.camera.sensor_height = 7.41 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/Super_35_Film.py b/release/scripts/presets/camera/Super_35_Film.py index 65ccb0f216c..b22ff545c68 100644 --- a/release/scripts/presets/camera/Super_35_Film.py +++ b/release/scripts/presets/camera/Super_35_Film.py @@ -1,4 +1,4 @@ import bpy -bpy.context.object.data.sensor_width = 24.89 -bpy.context.object.data.sensor_height = 18.66 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 24.89 +bpy.context.camera.sensor_height = 18.66 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/iPhone_4.py b/release/scripts/presets/camera/iPhone_4.py index b87dda18097..1e43cd11494 100644 --- a/release/scripts/presets/camera/iPhone_4.py +++ b/release/scripts/presets/camera/iPhone_4.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.54 -bpy.context.object.data.sensor_height = 3.42 -bpy.context.object.data.lens = 3.85 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.54 +bpy.context.camera.sensor_height = 3.42 +bpy.context.camera.lens = 3.85 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/iPhone_4S.py b/release/scripts/presets/camera/iPhone_4S.py index ea747f339d4..1139b7395b5 100644 --- a/release/scripts/presets/camera/iPhone_4S.py +++ b/release/scripts/presets/camera/iPhone_4S.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.54 -bpy.context.object.data.sensor_height = 3.42 -bpy.context.object.data.lens = 4.28 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.54 +bpy.context.camera.sensor_height = 3.42 +bpy.context.camera.lens = 4.28 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/camera/iPhone_5.py b/release/scripts/presets/camera/iPhone_5.py index 2764788a405..a6b6bbc2ec5 100644 --- a/release/scripts/presets/camera/iPhone_5.py +++ b/release/scripts/presets/camera/iPhone_5.py @@ -1,5 +1,5 @@ import bpy -bpy.context.object.data.sensor_width = 4.54 -bpy.context.object.data.sensor_height = 3.42 -bpy.context.object.data.lens = 4.10 -bpy.context.object.data.sensor_fit = 'HORIZONTAL' +bpy.context.camera.sensor_width = 4.54 +bpy.context.camera.sensor_height = 3.42 +bpy.context.camera.lens = 4.10 +bpy.context.camera.sensor_fit = 'HORIZONTAL' diff --git a/release/scripts/presets/sunsky/classic.py b/release/scripts/presets/sunsky/classic.py index 4394dcce242..edb065d553c 100644 --- a/release/scripts/presets/sunsky/classic.py +++ b/release/scripts/presets/sunsky/classic.py @@ -1,14 +1,14 @@ import bpy -bpy.context.object.data.sky.atmosphere_turbidity = 4.0 -bpy.context.object.data.sky.sky_blend_type = 'ADD' -bpy.context.object.data.sky.sky_blend = 1.0 -bpy.context.object.data.sky.horizon_brightness = 10.0 -bpy.context.object.data.sky.spread = 1.49011614159e-09 -bpy.context.object.data.sky.sky_color_space = 'SMPTE' -bpy.context.object.data.sky.sky_exposure = 1.0 -bpy.context.object.data.sky.sun_brightness = 1.00000011921 -bpy.context.object.data.sky.sun_size = 1.00000166893 -bpy.context.object.data.sky.backscattered_light = 0.0 -bpy.context.object.data.sky.sun_intensity = 4.0 -bpy.context.object.data.sky.atmosphere_inscattering = 1.0 -bpy.context.object.data.sky.atmosphere_extinction = 1.0 +bpy.context.lamp.sky.atmosphere_turbidity = 4.0 +bpy.context.lamp.sky.sky_blend_type = 'ADD' +bpy.context.lamp.sky.sky_blend = 1.0 +bpy.context.lamp.sky.horizon_brightness = 10.0 +bpy.context.lamp.sky.spread = 1.49011614159e-09 +bpy.context.lamp.sky.sky_color_space = 'SMPTE' +bpy.context.lamp.sky.sky_exposure = 1.0 +bpy.context.lamp.sky.sun_brightness = 1.00000011921 +bpy.context.lamp.sky.sun_size = 1.00000166893 +bpy.context.lamp.sky.backscattered_light = 0.0 +bpy.context.lamp.sky.sun_intensity = 4.0 +bpy.context.lamp.sky.atmosphere_inscattering = 1.0 +bpy.context.lamp.sky.atmosphere_extinction = 1.0 diff --git a/release/scripts/presets/sunsky/desert.py b/release/scripts/presets/sunsky/desert.py index f68ea23845b..8dd587a6eaf 100644 --- a/release/scripts/presets/sunsky/desert.py +++ b/release/scripts/presets/sunsky/desert.py @@ -1,14 +1,14 @@ import bpy -bpy.context.object.data.sky.atmosphere_turbidity = 6.0 -bpy.context.object.data.sky.sky_blend_type = 'ADD' -bpy.context.object.data.sky.sky_blend = 1.0 -bpy.context.object.data.sky.horizon_brightness = 4.99999761581 -bpy.context.object.data.sky.spread = 1.49011614159e-09 -bpy.context.object.data.sky.sky_color_space = 'SMPTE' -bpy.context.object.data.sky.sky_exposure = 1.0 -bpy.context.object.data.sky.sun_brightness = 1.00000011921 -bpy.context.object.data.sky.sun_size = 4.0 -bpy.context.object.data.sky.backscattered_light = 1.0 -bpy.context.object.data.sky.sun_intensity = 1.0 -bpy.context.object.data.sky.atmosphere_inscattering = 1.0 -bpy.context.object.data.sky.atmosphere_extinction = 1.0 +bpy.context.lamp.sky.atmosphere_turbidity = 6.0 +bpy.context.lamp.sky.sky_blend_type = 'ADD' +bpy.context.lamp.sky.sky_blend = 1.0 +bpy.context.lamp.sky.horizon_brightness = 4.99999761581 +bpy.context.lamp.sky.spread = 1.49011614159e-09 +bpy.context.lamp.sky.sky_color_space = 'SMPTE' +bpy.context.lamp.sky.sky_exposure = 1.0 +bpy.context.lamp.sky.sun_brightness = 1.00000011921 +bpy.context.lamp.sky.sun_size = 4.0 +bpy.context.lamp.sky.backscattered_light = 1.0 +bpy.context.lamp.sky.sun_intensity = 1.0 +bpy.context.lamp.sky.atmosphere_inscattering = 1.0 +bpy.context.lamp.sky.atmosphere_extinction = 1.0 diff --git a/release/scripts/presets/sunsky/mountain.py b/release/scripts/presets/sunsky/mountain.py index 9b81ffd4399..f0540af8100 100644 --- a/release/scripts/presets/sunsky/mountain.py +++ b/release/scripts/presets/sunsky/mountain.py @@ -1,14 +1,14 @@ import bpy -bpy.context.object.data.sky.atmosphere_turbidity = 2.00000023842 -bpy.context.object.data.sky.sky_blend_type = 'ADD' -bpy.context.object.data.sky.sky_blend = 1.0 -bpy.context.object.data.sky.horizon_brightness = 0.100000016391 -bpy.context.object.data.sky.spread = 1.0 -bpy.context.object.data.sky.sky_color_space = 'SMPTE' -bpy.context.object.data.sky.sky_exposure = 1.0 -bpy.context.object.data.sky.sun_brightness = 1.99999988079 -bpy.context.object.data.sky.sun_size = 4.0 -bpy.context.object.data.sky.backscattered_light = -1.0 -bpy.context.object.data.sky.sun_intensity = 10.0 -bpy.context.object.data.sky.atmosphere_inscattering = 1.0 -bpy.context.object.data.sky.atmosphere_extinction = 1.0 +bpy.context.lamp.sky.atmosphere_turbidity = 2.00000023842 +bpy.context.lamp.sky.sky_blend_type = 'ADD' +bpy.context.lamp.sky.sky_blend = 1.0 +bpy.context.lamp.sky.horizon_brightness = 0.100000016391 +bpy.context.lamp.sky.spread = 1.0 +bpy.context.lamp.sky.sky_color_space = 'SMPTE' +bpy.context.lamp.sky.sky_exposure = 1.0 +bpy.context.lamp.sky.sun_brightness = 1.99999988079 +bpy.context.lamp.sky.sun_size = 4.0 +bpy.context.lamp.sky.backscattered_light = -1.0 +bpy.context.lamp.sky.sun_intensity = 10.0 +bpy.context.lamp.sky.atmosphere_inscattering = 1.0 +bpy.context.lamp.sky.atmosphere_extinction = 1.0 diff --git a/release/scripts/startup/bl_operators/presets.py b/release/scripts/startup/bl_operators/presets.py index 8b0ed7d9942..f89792bea6e 100644 --- a/release/scripts/startup/bl_operators/presets.py +++ b/release/scripts/startup/bl_operators/presets.py @@ -253,7 +253,7 @@ class AddPresetCamera(AddPresetBase, Operator): preset_menu = "CAMERA_MT_presets" preset_defines = [ - "cam = bpy.context.object.data" + "cam = bpy.context.camera" ] preset_subdir = "camera" @@ -352,7 +352,7 @@ class AddPresetSunSky(AddPresetBase, Operator): preset_menu = "LAMP_MT_sunsky_presets" preset_defines = [ - "sky = bpy.context.object.data.sky" + "sky = bpy.context.lamp.sky" ] preset_values = [ |