[Bf-blender-cvs] [6e08aa0] master: Tracking: Expose Filter Tracks operators to the Cleanup panel

Sergey Sharybin noreply at git.blender.org
Mon Feb 16 13:16:19 CET 2015


Commit: 6e08aa0a9e1cb8f781807274ca4b33212af9c035
Author: Sergey Sharybin
Date:   Mon Feb 16 17:14:29 2015 +0500
Branches: master
https://developer.blender.org/rB6e08aa0a9e1cb8f781807274ca4b33212af9c035

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.

===================================================================

M	release/scripts/startup/bl_operators/clip.py
M	release/scripts/startup/bl_ui/space_clip.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index 5ce09b3..a61791f 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -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'}
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 727bd77..a9fcdea 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -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):




More information about the Bf-blender-cvs mailing list