diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-30 14:37:20 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-30 14:37:20 +0400 |
commit | 991ab5802bc8f6d5f634757473f8a2f38af91037 (patch) | |
tree | b0bdea5a62d1989bbe1b257f8b5f79cc1cff3ab3 /release | |
parent | a32cc95fa87e50efbd2ea152ea44766614894a49 (diff) |
Cleanup: move tracking settings to be just after Track panel which makes it easier to
control things during tracking.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_clip.py | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 9b7a3095790..5ee5c34a2a2 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -478,6 +478,41 @@ class CLIP_PT_track(Panel): layout.label(text=label_text) +class CLIP_PT_track_settings(Panel): + bl_space_type = 'CLIP_EDITOR' + bl_region_type = 'UI' + bl_label = "Tracking Settings" + bl_options = {'DEFAULT_CLOSED'} + + @classmethod + def poll(cls, context): + sc = context.space_data + + return sc.mode == 'TRACKING' and sc.clip + + def draw(self, context): + layout = self.layout + clip = context.space_data.clip + settings = clip.tracking.settings + + col = layout.column() + + active = clip.tracking.tracks.active + if active: + col.prop(active, "tracker") + + if active.tracker == 'KLT': + col.prop(active, "pyramid_levels") + col.prop(active, "correlation_min") + + col.separator() + col.prop(active, "frames_limit") + col.prop(active, "margin") + col.prop(active, "pattern_match", text="Match") + + col.prop(settings, "speed") + + class CLIP_PT_tracking_camera(Panel): bl_space_type = 'CLIP_EDITOR' bl_region_type = 'UI' @@ -597,41 +632,6 @@ class CLIP_PT_marker_display(Panel): row.prop(sc, "path_length", text="Length") -class CLIP_PT_track_settings(Panel): - bl_space_type = 'CLIP_EDITOR' - bl_region_type = 'UI' - bl_label = "Tracking Settings" - bl_options = {'DEFAULT_CLOSED'} - - @classmethod - def poll(cls, context): - sc = context.space_data - - return sc.mode == 'TRACKING' and sc.clip - - def draw(self, context): - layout = self.layout - clip = context.space_data.clip - settings = clip.tracking.settings - - col = layout.column() - - active = clip.tracking.tracks.active - if active: - col.prop(active, "tracker") - - if active.tracker == 'KLT': - col.prop(active, "pyramid_levels") - col.prop(active, "correlation_min") - - col.separator() - col.prop(active, "frames_limit") - col.prop(active, "margin") - col.prop(active, "pattern_match", text="Match") - - col.prop(settings, "speed") - - class CLIP_PT_stabilization(Panel): bl_space_type = 'CLIP_EDITOR' bl_region_type = 'UI' |