Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_clip.py
| Show First 20 Lines • Show All 914 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if camera.units == 'MILLIMETERS': | if camera.units == 'MILLIMETERS': | ||||
| col.prop(camera, "focal_length") | col.prop(camera, "focal_length") | ||||
| else: | else: | ||||
| col.prop(camera, "focal_length_pixels") | col.prop(camera, "focal_length_pixels") | ||||
| col.prop(camera, "units", text="Units") | col.prop(camera, "units", text="Units") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(clip.tracking.camera, "principal", text="Optical Center") | col.prop(clip.tracking.camera, "principal_point", text="Optical Center") | ||||
| col.operator("clip.set_center_principal", text="Set Center") | |||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(camera, "distortion_model", text="Lens Distortion") | col.prop(camera, "distortion_model", text="Lens Distortion") | ||||
| if camera.distortion_model == 'POLYNOMIAL': | if camera.distortion_model == 'POLYNOMIAL': | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(camera, "k1") | col.prop(camera, "k1") | ||||
| col.prop(camera, "k2") | col.prop(camera, "k2") | ||||
| col.prop(camera, "k3") | col.prop(camera, "k3") | ||||
| ▲ Show 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sc = context.space_data | sc = context.space_data | ||||
| clip = sc.clip | clip = sc.clip | ||||
| layout.operator("clip.open") | layout.operator("clip.open") | ||||
| if clip: | if clip: | ||||
| layout.operator("clip.set_scene_frames") | layout.operator("clip.set_scene_frames") | ||||
| layout.operator("clip.set_center_principal") | |||||
| layout.operator("clip.prefetch") | layout.operator("clip.prefetch") | ||||
| layout.operator("clip.reload") | layout.operator("clip.reload") | ||||
| layout.menu("CLIP_MT_proxy") | layout.menu("CLIP_MT_proxy") | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("clip.set_viewport_background") | layout.operator("clip.set_viewport_background") | ||||
| layout.operator("clip.setup_tracking_scene") | layout.operator("clip.setup_tracking_scene") | ||||
| ▲ Show 20 Lines • Show All 640 Lines • Show Last 20 Lines | |||||