Tracking: Expose Filter Tracks operators to the Cleanup panel

Not totally happy with this, but it's better than nothing for until
we've got real outlier detection. Also made it more cleat how exactly
filtering happens, so users don't expect something the operator is not
intended to do.
This commit is contained in:
Sergey Sharybin
2015-02-16 17:14:29 +05:00
parent 7c3d5a3337
commit 6e08aa0a9e
2 changed files with 2 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ def CLIP_default_settings_from_track(clip, track, framenr):
class CLIP_OT_filter_tracks(bpy.types.Operator):
"""Filter tracks which has weirdly looking spikes in motion curves"""
bl_label = "Filter Tracks"
bl_idname = "clip.filter_tracks"
bl_options = {'UNDO', 'REGISTER'}

View File

@@ -467,6 +467,7 @@ class CLIP_PT_tools_cleanup(CLIP_PT_tracking_panel, Panel):
layout.prop(settings, "clean_frames", text="Frames")
layout.prop(settings, "clean_error", text="Error")
layout.prop(settings, "clean_action", text="")
layout.operator("clip.filter_tracks")
class CLIP_PT_tools_geometry(CLIP_PT_tracking_panel, Panel):