mirror of
https://github.com/EatTheFuture/compify.git
synced 2025-01-22 00:09:11 -05:00
Simplify the camera track alignment UI.
This commit is contained in:
parent
58b6206bc1
commit
303a589eb8
@ -42,14 +42,14 @@ class CompifyCameraAlignPanel(bpy.types.Panel):
|
|||||||
col.prop(point, "name")
|
col.prop(point, "name")
|
||||||
|
|
||||||
row = col.row()
|
row = col.row()
|
||||||
row.prop(point, "scene_point", text="Target Point")
|
row.prop(point, "track_point", text="From")
|
||||||
row.operator("scene.compify_align_set_scene_point_to_cursor", text="", icon="CURSOR")
|
row.operator("scene.compify_align_set_track_point_to_cursor", text="", icon="CURSOR")
|
||||||
|
|
||||||
col.separator(factor=2.0)
|
col.separator(factor=2.0)
|
||||||
|
|
||||||
row = col.row()
|
row = col.row()
|
||||||
row.prop(point, "track_point", text="Tracker")
|
row.prop(point, "scene_point", text="To")
|
||||||
row.operator("scene.compify_align_set_track_point_to_cursor", text="", icon="CURSOR")
|
row.operator("scene.compify_align_set_scene_point_to_cursor", text="", icon="CURSOR")
|
||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
col.separator(factor=2.0)
|
col.separator(factor=2.0)
|
||||||
@ -63,9 +63,6 @@ class OBJECT_UL_compify_camera_align_items(bpy.types.UIList):
|
|||||||
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
if self.layout_type in {'DEFAULT', 'COMPACT'}:
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.label(text=item.name)
|
row.label(text=item.name)
|
||||||
row.label(text="{:.2f}".format(item.scene_point[0]))
|
|
||||||
row.label(text="{:.2f}".format(item.scene_point[1]))
|
|
||||||
row.label(text="{:.2f}".format(item.scene_point[2]))
|
|
||||||
# 'GRID' layout type should be as compact as possible (typically a single icon!).
|
# 'GRID' layout type should be as compact as possible (typically a single icon!).
|
||||||
elif self.layout_type in {'GRID'}:
|
elif self.layout_type in {'GRID'}:
|
||||||
layout.alignment = 'CENTER'
|
layout.alignment = 'CENTER'
|
||||||
|
Loading…
Reference in New Issue
Block a user