From a8ee19f65b28c746d63fab407682229151e58f35 Mon Sep 17 00:00:00 2001 From: CypherPoet Date: Sun, 27 Oct 2024 23:11:22 -0400 Subject: [PATCH] Expose Tilt-Shift camera parameters in the Item N-panel. While experimenting with adjusting the `Shift X` and `Shift Y` properies of my rig's camera, I noticed that there's no way to do this through the `Item` N-panel. This feels inconsistent with similar properties that are exposed there such as Focal Length, Clipping, and Type -- so I'm thinking this would be a worthwhile addition. --- source/ui_panels.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/ui_panels.py b/source/ui_panels.py index 0ffa5de..3fc1264 100644 --- a/source/ui_panels.py +++ b/source/ui_panels.py @@ -31,6 +31,11 @@ class ADD_CAMERA_RIGS_PT_camera_rig_ui(Panel, CameraRigMixin): col.prop(cam_data, "clip_start", text="Start") col.prop(cam_data, "clip_end", text="End") + col = layout.column(align=True) + col.label(text="Shift:") + col.prop(cam_data, "shift_x", text="X") + col.prop(cam_data, "shift_y", text="Y") + layout.prop(cam_data, "type") # DoF -- 2.30.2