Im trying to get this tracking script for running in the background working. It was working perfectly in the background until I got to the filter tracks portion. Here is the script:
import bpy
for area in bpy.context.screen.areas:
if area.type == 'CLIP_EDITOR':
override = bpy.context.copy()
override['area'] = area
bpy.ops.clip.detect_features(override, threshold = 0.05, min_distance = 25)
print('Markers Detected')
bpy.ops.clip.track_markers(override, sequence=True)
print('Tracked Forward')
bpy.ops.clip.track_markers(override, sequence=True, backwards=True)
print('Tracked Backwards')
totalFrames = bpy.context.scene.frame_end = bpy.context.scene.frame_start
bpy.ops.clip.clean_tracks(override, frames=(totalFrames + 1), error=0.5, action='DELETE_TRACK')
#Can get to here fine, error occurs when doing this filter track function
bpy.ops.clip.filter_tracks(override['area'], track_threshold=5)
bpy.ops.wm.save_as_mainfile(filepath="/Applications/blender2.76" + "test.blend")
break
Does anyone know how I could fix this?
This is currently what the errors are looking like now for this.