import bpy camera = bpy.context.edit_movieclip.tracking.camera camera.sensor_width = 6.17 camera.units = 'MILLIMETERS' camera.pixel_aspect = 1