[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60218] branches/soc-2013-motion_track: Add simple panel for creating multicamera correspondences

Joseph Mansfield sftrabbit at gmail.com
Wed Sep 18 14:58:12 CEST 2013


Revision: 60218
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60218
Author:   sftrabbit
Date:     2013-09-18 12:58:12 +0000 (Wed, 18 Sep 2013)
Log Message:
-----------
Add simple panel for creating multicamera correspondences

The create correspondence operator is currently non-functional, but it is expected that it will create correspondences between tracks in different movie clips.

Modified Paths:
--------------
    branches/soc-2013-motion_track/release/scripts/startup/bl_ui/space_clip.py
    branches/soc-2013-motion_track/source/blender/editors/space_clip/clip_intern.h
    branches/soc-2013-motion_track/source/blender/editors/space_clip/space_clip.c
    branches/soc-2013-motion_track/source/blender/editors/space_clip/tracking_ops.c

Modified: branches/soc-2013-motion_track/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- branches/soc-2013-motion_track/release/scripts/startup/bl_ui/space_clip.py	2013-09-18 09:25:07 UTC (rev 60217)
+++ branches/soc-2013-motion_track/release/scripts/startup/bl_ui/space_clip.py	2013-09-18 12:58:12 UTC (rev 60218)
@@ -956,6 +956,17 @@
         layout.operator("clip.set_scene_frames")
 
 
+class CLIP_PT_multicamera_clip(CLIP_PT_clip_view_panel, Panel):
+    bl_space_type = 'CLIP_EDITOR'
+    bl_region_type = 'TOOLS'
+    bl_label = "Multicamera"
+
+    def draw(self, context):
+        layout = self.layout
+
+        layout.operator("clip.create_correspondence")
+
+
 class CLIP_MT_view(Menu):
     bl_label = "View"
 

Modified: branches/soc-2013-motion_track/source/blender/editors/space_clip/clip_intern.h
===================================================================
--- branches/soc-2013-motion_track/source/blender/editors/space_clip/clip_intern.h	2013-09-18 09:25:07 UTC (rev 60217)
+++ branches/soc-2013-motion_track/source/blender/editors/space_clip/clip_intern.h	2013-09-18 12:58:12 UTC (rev 60218)
@@ -201,6 +201,8 @@
 void CLIP_OT_keyframe_insert(struct wmOperatorType *ot);
 void CLIP_OT_keyframe_delete(struct wmOperatorType *ot);
 
+void CLIP_OT_create_correspondence(struct wmOperatorType *ot);
+
 /* tracking_select.c */
 void CLIP_OT_select(struct wmOperatorType *ot);
 void CLIP_OT_select_all(struct wmOperatorType *ot);

Modified: branches/soc-2013-motion_track/source/blender/editors/space_clip/space_clip.c
===================================================================
--- branches/soc-2013-motion_track/source/blender/editors/space_clip/space_clip.c	2013-09-18 09:25:07 UTC (rev 60217)
+++ branches/soc-2013-motion_track/source/blender/editors/space_clip/space_clip.c	2013-09-18 12:58:12 UTC (rev 60218)
@@ -526,6 +526,9 @@
 	WM_operatortype_append(CLIP_OT_keyframe_insert);
 	WM_operatortype_append(CLIP_OT_keyframe_delete);
 
+	/* Multicamera */
+	WM_operatortype_append(CLIP_OT_create_correspondence);
+
 	/* ** clip_graph_ops.c  ** */
 
 	/* graph editing */

Modified: branches/soc-2013-motion_track/source/blender/editors/space_clip/tracking_ops.c
===================================================================
--- branches/soc-2013-motion_track/source/blender/editors/space_clip/tracking_ops.c	2013-09-18 09:25:07 UTC (rev 60217)
+++ branches/soc-2013-motion_track/source/blender/editors/space_clip/tracking_ops.c	2013-09-18 12:58:12 UTC (rev 60218)
@@ -4188,3 +4188,20 @@
 	/* flags */
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 }
+
+/********************** Multicamera operators ******************************/
+
+void CLIP_OT_create_correspondence(wmOperatorType *ot)
+{
+	/* identifiers */
+	ot->name = "Create correspondence";
+	ot->description = "Create a correspondence between selected tracks across multiple clips";
+	ot->idname = "CLIP_OT_create_correspondence";
+
+	/* api callbacks */
+	//ot->poll = ;
+	//ot->exec = ;
+
+	/* flags */
+	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+}




More information about the Bf-blender-cvs mailing list