diff options
Diffstat (limited to 'release')
31 files changed, 155 insertions, 93 deletions
diff --git a/release/scripts/presets/tracking_camera/1_inch.py b/release/scripts/presets/tracking_camera/1_inch.py index 97e87b8c5a7..5ca4f04b6d7 100644 --- a/release/scripts/presets/tracking_camera/1_inch.py +++ b/release/scripts/presets/tracking_camera/1_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 13.2 -bpy.context.camera.sensor_height = 8.80 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 13.2 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/1_slash_1.8_inch.py b/release/scripts/presets/tracking_camera/1_slash_1.8_inch.py index 8b0dc3cea1d..6b6d7fe5a1c 100644 --- a/release/scripts/presets/tracking_camera/1_slash_1.8_inch.py +++ b/release/scripts/presets/tracking_camera/1_slash_1.8_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 7.18 -bpy.context.camera.sensor_height = 5.32 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 7.18 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/1_slash_2.3_inch.py b/release/scripts/presets/tracking_camera/1_slash_2.3_inch.py index bd6808da082..dacb1508f8e 100644 --- a/release/scripts/presets/tracking_camera/1_slash_2.3_inch.py +++ b/release/scripts/presets/tracking_camera/1_slash_2.3_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 6.17 -bpy.context.camera.sensor_height = 4.55 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 6.17 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/1_slash_2.5_inch.py b/release/scripts/presets/tracking_camera/1_slash_2.5_inch.py index 90f60e7d7f0..e2f4ad9a662 100644 --- a/release/scripts/presets/tracking_camera/1_slash_2.5_inch.py +++ b/release/scripts/presets/tracking_camera/1_slash_2.5_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 5.76 -bpy.context.camera.sensor_height = 4.29 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 5.76 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/1_slash_2.7_inch.py b/release/scripts/presets/tracking_camera/1_slash_2.7_inch.py index 4a9591803d0..75db17cfe54 100644 --- a/release/scripts/presets/tracking_camera/1_slash_2.7_inch.py +++ b/release/scripts/presets/tracking_camera/1_slash_2.7_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 5.37 -bpy.context.camera.sensor_height = 4.04 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 5.37 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/1_slash_3.2_inch.py b/release/scripts/presets/tracking_camera/1_slash_3.2_inch.py index 5f31b9ec49c..f80c4a85402 100644 --- a/release/scripts/presets/tracking_camera/1_slash_3.2_inch.py +++ b/release/scripts/presets/tracking_camera/1_slash_3.2_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 4.54 -bpy.context.camera.sensor_height = 3.42 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 4.54 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/2_slash_3_inch.py b/release/scripts/presets/tracking_camera/2_slash_3_inch.py index eb463a31af7..23dc18468cd 100644 --- a/release/scripts/presets/tracking_camera/2_slash_3_inch.py +++ b/release/scripts/presets/tracking_camera/2_slash_3_inch.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 8.8 -bpy.context.camera.sensor_height = 6.6 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 8.8 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/APS-C.py b/release/scripts/presets/tracking_camera/APS-C.py index 4031e8bae71..4cc21ab5672 100644 --- a/release/scripts/presets/tracking_camera/APS-C.py +++ b/release/scripts/presets/tracking_camera/APS-C.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 23.6 -bpy.context.camera.sensor_height = 15.6 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 23.6 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/APS-C_(Canon).py b/release/scripts/presets/tracking_camera/APS-C_(Canon).py index 484929a54e7..285f290d899 100644 --- a/release/scripts/presets/tracking_camera/APS-C_(Canon).py +++ b/release/scripts/presets/tracking_camera/APS-C_(Canon).py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 22.30 -bpy.context.camera.sensor_height = 14.90 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 22.30 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/APS-H_(Canon).py b/release/scripts/presets/tracking_camera/APS-H_(Canon).py index d3b61d1aa46..f41691e0579 100644 --- a/release/scripts/presets/tracking_camera/APS-H_(Canon).py +++ b/release/scripts/presets/tracking_camera/APS-H_(Canon).py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 27.90 -bpy.context.camera.sensor_height = 18.60 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 27.90 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_16mm.py b/release/scripts/presets/tracking_camera/Analog_16mm.py index a290839c8e0..08761d05c31 100644 --- a/release/scripts/presets/tracking_camera/Analog_16mm.py +++ b/release/scripts/presets/tracking_camera/Analog_16mm.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 10.26 -bpy.context.camera.sensor_height = 7.49 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 10.26 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_35mm.py b/release/scripts/presets/tracking_camera/Analog_35mm.py index fe3338dd292..c4939319e10 100644 --- a/release/scripts/presets/tracking_camera/Analog_35mm.py +++ b/release/scripts/presets/tracking_camera/Analog_35mm.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 22 -bpy.context.camera.sensor_height = 16 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 22 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_65mm.py b/release/scripts/presets/tracking_camera/Analog_65mm.py index d6eb9c32283..333aa4775ad 100644 --- a/release/scripts/presets/tracking_camera/Analog_65mm.py +++ b/release/scripts/presets/tracking_camera/Analog_65mm.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 52.45 -bpy.context.camera.sensor_height = 23.01 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 52.45 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_IMAX.py b/release/scripts/presets/tracking_camera/Analog_IMAX.py index b71b910dee0..27bbbe1bc3d 100644 --- a/release/scripts/presets/tracking_camera/Analog_IMAX.py +++ b/release/scripts/presets/tracking_camera/Analog_IMAX.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 71.41 -bpy.context.camera.sensor_height = 52.63 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 71.41 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_Super_16.py b/release/scripts/presets/tracking_camera/Analog_Super_16.py index f76238c69d3..e453b31cdd7 100644 --- a/release/scripts/presets/tracking_camera/Analog_Super_16.py +++ b/release/scripts/presets/tracking_camera/Analog_Super_16.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 12.35 -bpy.context.camera.sensor_height = 7.42 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 12.35 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Analog_Super_35.py b/release/scripts/presets/tracking_camera/Analog_Super_35.py index b22ff545c68..63e9d93be54 100644 --- a/release/scripts/presets/tracking_camera/Analog_Super_35.py +++ b/release/scripts/presets/tracking_camera/Analog_Super_35.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 24.89 -bpy.context.camera.sensor_height = 18.66 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 24.89 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Arri_Alexa_65.py b/release/scripts/presets/tracking_camera/Arri_Alexa_65.py index 24d03e022ae..3801701a5ff 100644 --- a/release/scripts/presets/tracking_camera/Arri_Alexa_65.py +++ b/release/scripts/presets/tracking_camera/Arri_Alexa_65.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 54.12 -bpy.context.camera.sensor_height = 25.58 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 54.12 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Arri_Alexa_LF.py b/release/scripts/presets/tracking_camera/Arri_Alexa_LF.py index 430fdc996a6..fa0a52b51a4 100644 --- a/release/scripts/presets/tracking_camera/Arri_Alexa_LF.py +++ b/release/scripts/presets/tracking_camera/Arri_Alexa_LF.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 36.70 -bpy.context.camera.sensor_height = 25.54 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 36.70 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Arri_Alexa_Mini_&_SXT.py b/release/scripts/presets/tracking_camera/Arri_Alexa_Mini_&_SXT.py index 90998bc0da0..223471beaa1 100644 --- a/release/scripts/presets/tracking_camera/Arri_Alexa_Mini_&_SXT.py +++ b/release/scripts/presets/tracking_camera/Arri_Alexa_Mini_&_SXT.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 29.90 -bpy.context.camera.sensor_height = 15.77 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 29.90 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_&_Studio.py b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_&_Studio.py index bb2b172919e..d658531de32 100644 --- a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_&_Studio.py +++ b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_&_Studio.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 12.48 -bpy.context.camera.sensor_height = 7.02 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 12.48 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_4K.py b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_4K.py index 4b735283c8b..11103c8df89 100644 --- a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_4K.py +++ b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_4K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 18.96 -bpy.context.camera.sensor_height = 10.00 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 18.96 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_6k.py b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_6k.py index 1a882f05786..942a9deca85 100644 --- a/release/scripts/presets/tracking_camera/Blackmagic_Pocket_6k.py +++ b/release/scripts/presets/tracking_camera/Blackmagic_Pocket_6k.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 23.10 -bpy.context.camera.sensor_height = 12.99 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 23.10 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Blackmagic_URSA_4.6K.py b/release/scripts/presets/tracking_camera/Blackmagic_URSA_4.6K.py index 767d16984d8..7d08928e5fb 100644 --- a/release/scripts/presets/tracking_camera/Blackmagic_URSA_4.6K.py +++ b/release/scripts/presets/tracking_camera/Blackmagic_URSA_4.6K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 25.34 -bpy.context.camera.sensor_height = 14.25 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 25.34 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Foveon_(Sigma).py b/release/scripts/presets/tracking_camera/Foveon_(Sigma).py index 6b35f29acaf..1184438bcd8 100644 --- a/release/scripts/presets/tracking_camera/Foveon_(Sigma).py +++ b/release/scripts/presets/tracking_camera/Foveon_(Sigma).py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 20.70 -bpy.context.camera.sensor_height = 13.80 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 20.70 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Fullframe.py b/release/scripts/presets/tracking_camera/Fullframe.py index c8017331b28..68df71b384e 100644 --- a/release/scripts/presets/tracking_camera/Fullframe.py +++ b/release/scripts/presets/tracking_camera/Fullframe.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 36 -bpy.context.camera.sensor_height = 24 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 36 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/MFT.py b/release/scripts/presets/tracking_camera/MFT.py index 7441f1aea76..eabd22a795c 100644 --- a/release/scripts/presets/tracking_camera/MFT.py +++ b/release/scripts/presets/tracking_camera/MFT.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 17.3 -bpy.context.camera.sensor_height = 13.0 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 17.3 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/Medium-format_(Hasselblad).py b/release/scripts/presets/tracking_camera/Medium-format_(Hasselblad).py index d03a4f22db7..65152877de9 100644 --- a/release/scripts/presets/tracking_camera/Medium-format_(Hasselblad).py +++ b/release/scripts/presets/tracking_camera/Medium-format_(Hasselblad).py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 44 -bpy.context.camera.sensor_height = 33 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 44 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/RED_Dragon_5K.py b/release/scripts/presets/tracking_camera/RED_Dragon_5K.py index e8b990d4d00..57366c7e7ad 100644 --- a/release/scripts/presets/tracking_camera/RED_Dragon_5K.py +++ b/release/scripts/presets/tracking_camera/RED_Dragon_5K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 25.60 -bpy.context.camera.sensor_height = 13.5 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 25.60 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/RED_Dragon_6K.py b/release/scripts/presets/tracking_camera/RED_Dragon_6K.py index 982e2ab8e00..2336ebc6b20 100644 --- a/release/scripts/presets/tracking_camera/RED_Dragon_6K.py +++ b/release/scripts/presets/tracking_camera/RED_Dragon_6K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 30.70 -bpy.context.camera.sensor_height = 15.80 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 30.70 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/RED_Helium_8K.py b/release/scripts/presets/tracking_camera/RED_Helium_8K.py index 90998bc0da0..223471beaa1 100644 --- a/release/scripts/presets/tracking_camera/RED_Helium_8K.py +++ b/release/scripts/presets/tracking_camera/RED_Helium_8K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 29.90 -bpy.context.camera.sensor_height = 15.77 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 29.90 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 diff --git a/release/scripts/presets/tracking_camera/RED_Monstro_8K.py b/release/scripts/presets/tracking_camera/RED_Monstro_8K.py index 1c8bc11dfaa..7a221ed55c1 100644 --- a/release/scripts/presets/tracking_camera/RED_Monstro_8K.py +++ b/release/scripts/presets/tracking_camera/RED_Monstro_8K.py @@ -1,4 +1,6 @@ import bpy -bpy.context.camera.sensor_width = 40.96 -bpy.context.camera.sensor_height = 21.60 -bpy.context.camera.sensor_fit = 'HORIZONTAL' +camera = bpy.context.edit_movieclip.tracking.camera + +camera.sensor_width = 40.96 +camera.units = 'MILLIMETERS' +camera.pixel_aspect = 1 |