Fix T92559: Tracking camera presets don't work
New tracking-camera presets d486ee2dbd
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
This commit is contained in:
parent
2eb94f3036
commit
486d1e8510
Notes:
blender-bot
2023-02-14 10:35:28 +01:00
Referenced by issue #92559, Selecting Camera presets in Tracking layout gives 'Context' object has no attribute 'camera' error
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue