[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45286] trunk/blender/release/scripts/ startup/bl_ui/space_clip.py: Cleanup: move tracking settings to be just after Track panel which makes it easier to
Sergey Sharybin
sergey.vfx at gmail.com
Fri Mar 30 12:37:30 CEST 2012
Revision: 45286
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45286
Author: nazgul
Date: 2012-03-30 10:37:20 +0000 (Fri, 30 Mar 2012)
Log Message:
-----------
Cleanup: move tracking settings to be just after Track panel which makes it easier to
control things during tracking.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_clip.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2012-03-30 10:00:20 UTC (rev 45285)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py 2012-03-30 10:37:20 UTC (rev 45286)
@@ -478,6 +478,41 @@
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 @@
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'
More information about the Bf-blender-cvs
mailing list