diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-09 20:57:02 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-09 20:57:02 +0400 |
commit | 9f30c7147cdb726e503ff37ba585f5e35b090d8c (patch) | |
tree | ef90a368102f7a5925d87eaaaa821f024eb107cd /release/scripts | |
parent | 9a32fd05db015c514aa9af42e380ac1032f1b345 (diff) |
Frame matching methods for follow track constraint
This is needed in cases when using blender camera with different
resolution than original footage. Behaves in the same way as
background picture framing.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_object_constraint.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object_constraint.py b/release/scripts/startup/bl_ui/properties_object_constraint.py index e4da581ab83..3c53a829fa2 100644 --- a/release/scripts/startup/bl_ui/properties_object_constraint.py +++ b/release/scripts/startup/bl_ui/properties_object_constraint.py @@ -773,16 +773,21 @@ class ConstraintButtonsPanel(): row.prop(con, "use_active_clip") row.prop(con, "use_3d_position") + col = layout.column() + if not con.use_active_clip: - layout.prop(con, "clip") + col.prop(con, "clip") + + row = col.row() + row.prop(con, "frame_method", expand=True) if clip: - layout.prop_search(con, "object", clip.tracking, "objects", icon='OBJECT_DATA') - layout.prop_search(con, "track", clip.tracking, "tracks", icon='ANIM_DATA') + col.prop_search(con, "object", clip.tracking, "objects", icon='OBJECT_DATA') + col.prop_search(con, "track", clip.tracking, "tracks", icon='ANIM_DATA') - layout.prop(con, "camera") + col.prop(con, "camera") - row = layout.row() + row = col.row() row.active = not con.use_3d_position row.prop(con, "depth_object") |