13
$\begingroup$

I was wondering if it was possible to lock the view (similar to quad view), so that the view doesn't change if I accidentally bump the middle mouse button.

Is there a setting I can change or a script that can do this?

$\endgroup$
8
$\begingroup$

Short answer - no.

However this may help...

  • I assume that you may have a view rotation that took some time to setup, if this is the case you could...

    • Add an empty, Enable Align to View
    • Then use 'Shift+Numpad1/3/7' to change the views aligned to the active object.
  • Quad view allows you to lock/unlock the view rotation. This is intended so you can maintain top/front/side views with one user view, but theres nothing stopping you setting up the rotation you want, then locking the view.

If you really want to do this with a script by writing an operator that intercepts view rotate and makes the choice to run or not, but I wouldn't recommend doing this since its fairly involved for such a small change.

$\endgroup$
  • 2
    $\begingroup$ Note, when checking align to view, I noticed the viewport would flip direction, committed fix (will be in 2.68) projects.blender.org/scm/… $\endgroup$ – ideasman42 May 26 '13 at 18:26
9
$\begingroup$

One way you might want to go about this would be to:

  1. Align Active Camera to View with CtrlAlt + Numpad 0.
  2. Lock Camera to View.
  3. Select the camera and lock it's transformations.
$\endgroup$
8
$\begingroup$

You can't lock the rotation of the view but you can lock the pan of the view to always center on the 3D Cursor.

Lock view to cursor

$\endgroup$
  • $\begingroup$ Omg you have helped me understand an issue I've had in one scene for ages. That lock to object box had a selection and I'd no idea how this happened. THANK YOU $\endgroup$ – Neil Oct 3 '17 at 7:36
3
$\begingroup$

Check out this add on by Jason van Gumster(fweeb)

Described like this:

It locks the 3D View to whatever viewing angle you’re currently using, kind of like the ortho views when you use Quad View… but this works for any arbitrary viewing angle.

[...] I discovered that the feature is actually in the Blender Python API, there’s just no way to access it in the UI.So I fixed that.

$\endgroup$
  • $\begingroup$ Link dead 404 not found $\endgroup$ – softyoda yoann Oct 29 '18 at 19:06
  • $\begingroup$ What was the add-on's name? $\endgroup$ – ChameleonScales Nov 26 at 9:37
1
$\begingroup$

Here is an Viewport lock addon, may be the addon is a real decision for Your issue? https://blenderartists.org/t/wlock-an-addon-for-blender-2-8-which-allows-to-lock-3d-view-rotation-using-hotkey-default-alt-w/1163353

This addon allows to lock 3D view rotation (only 3D view) using hotkey. As an additional indicator a 'lock' icon is displayed (can be set up or disabled in Preferences).

$\endgroup$
  • 1
    $\begingroup$ Hello and welcome. We are looking for answers that give some context and explanation of how and why they work. Could you edit your answer and add a short description of what the addon does and why it works? $\endgroup$ – Duarte Farrajota Ramos Jun 9 at 1:00
  • $\begingroup$ This add-on is awesome. Blender should really have such a toggle in the View menu $\endgroup$ – ChameleonScales Nov 26 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.