Viewport Lock/Unlock
I propose a lock/unlock functionality to be added to the viewport. This would help in stopping accidental middle mouse clicking when in <strong>orthographic</strong> view and not having to reset the viewport every time. The lock/unlock icon could be located near the viewport gizmos.
14 Comments
Hi @mutagennix, i'm update the script ; i'm add a simple checkbox on the header, if i can take the times i'm try to add an icon with all other options. It's a fork from your script @Jason van Gumster .
gitlab.com/stilobique-blender-addons/lock-viewport
* @Vaillant Aurelien * Thank you in advance for taking the time to create something for 2.80. If you need any PNG or vector icons then let me know.
* @Vaillant Aurelien * Thanks for updating the script. Would you mind if I migrated your changes upstream?
* @Vaillant Aurelien * Could you please also add a keypress to lock/unlock. I believe the keyboard "L" key is not assigned to anything so it might be a good choice.
* @Jason van Gumster * Hi don't know how to make a merge request XD . But yes, why not.
* @mutagennix * I'm not really fan to add a shortcut,
Lis to selected linked vertices -on edit mode, select one vertex,L. I can maybe expose quickly an option on user preference to setup it.I have a simple add-on (granted, for 2.79) that gets you part of the way there. It's not a full lock of the 3D Viewport, but it does prevent accidental rotation. Probably should port this to 2.80.
* @Jason van Gumster * Thank you for providing the original 2.79 Lock View plugin link. Were you able to migrate the updated code upstream?
Can you proposal a design and be more explicit ? I'm agree with this idea, but no find a good UI proposal ; maybe add a simple lock icon on the viewport ?
* @Vaillant Aurelien * I have taken a screenshot and added a lock icon. My thought was, when the lock is on, the icon and gizmo changes colour. The gizmo should probably be disabled until the viewport is unlocked. Each viewport would have its own Lock/Unlock functionality.
Yes, this accidently happens to me too, it would be useful.
Yes plz. This is my biggest issue with grease pencil as I want to be able to move around with one key and instead rotate.
This would also me good to be able to lock the camera and unlock it to view too.
I think this would be useful for 2D artists - a view rotation lock, and ortho lock, and a location lock would each have their uses. 3D animators might benefit, too, since it's often necessary to keep the silhouette in mind for a few different viewing angles when animating.