Page MenuHome

Adds roll capability to the 3d viewport
Closed, ArchivedPublic


Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.63
Category: 3D View
Python: 3.2
Script name: Viewport Roll
Author(s): Jace Priester
Status: Open

The viewport currently has pan and tilt but no roll ability. This script adds roll capability and uses the only remaining middle mouse + key combos to do so.

Alt + Middle Mouse allows you to use the mouse to roll.

Ctrl+Shift+Mouse wheel scroll allows you to roll via scrolling.



Event Timeline

Had a question about how this differs from trackball mode.

Trackball only allows you to approximate a pure roll by dragging near the edges of the screen. Currently the only way to do a pure roll of the viewport is by attaching a camera to view and R-Z-Z on the camera. This adds pure roll functionality.

Fixed a problem that caused processor usage to remain at peak after using the script. New version uploaded.

Very useful addon. Thank you!

Great addition, I was looking desperately for something like this! Thank you!

However, on my Blender (2.62 and 2.71) only the action Ctrl+Shift+wheel works, the other option (Alt+middlebutton) doesn't do anything...

Brendon Murphy (meta-androcto) closed this task as Archived.

Closing as archived, over 3 years old, broken.

I have a question - this addon stopped working in latest Blenders (2.76)
Can it be updated for this versions?
(Personally, I would like to see it in the trunk)

Updated. Tested and working as of 2.76.

Sorry, but I failed to enabled it on 4 win 7-8 machines
It writes

Traceback (most recent call last):

File "D:\Program Files\BLENDER.....\scripts\modules\", line 343, in enable
File "C:\Users\1D\AppData\Roaming....\addons\", line 128, in register

ValueError: validating class:: 'GRAB_POINTER' not found in ('REGISTER', 'UNDO', 'BLOCKING', 'MACRO', 'GRAB_CURSOR', 'PRESET', 'INTERNAL')


Please fix this addon ASAP!

Blender developers please add this feature to Blender! It is a feature that should have been in blender from the start. I don't know how others have managed without it.
Also note the viewport roll using crlt shift mouse scroll or 4/6 numpad does not give the precision this addon gives.

Version for 2.76. Sorry, looks like I uploaded the wrong file last time. This feature won't be added to Blender. I won't soapbox here except to say I was told by the developers it is "not useful" and "duplicates an existing feature" (it obviously doesn't). Good luck.

Thanks so much!

It's hard to believe the developers would say it's not useful. I don't think they have even tried it because they would know it's no where near the function they have.

I hope you keep updating this addon as needed.

Wow, this was wrong file) That's why I failed to install it...

"not useful" O_o
Well, okay. I'm not developer (just platinum donator) so, who knows.
Will also hope on keeping updating this addon as needed...

Oh my gosh. It's working! Thank you so much for this!!

Thank you for your hard work Jace!

I wanted to add something to the conversation as well. I'm using v 2.75a and I found out what seems to be the "similar" functionality that you were told about, but as usual it is "almost" hidden for the normal blender user.

It certainly doesn't show up properly in the View menu, nor it works with the pre-assigned keyboard shortcuts. Though it is indeed related to how the currently known View Roll works (pressing NumPad 4 & 6 / CTRL + SHIFT + ScrollWheel for incremental roll).

If you look at the User Preferences > Input > 3D View then search for "View Roll" you'll get all the shortcuts assigned to this "View Roll" you can also see that they all share the same RNA code for python which is VIEW3D_OT_view_roll.rna_type

Anyway, afterwards I took one of the mouse shortcuts and changed the roll type from "Roll Left" to "Roll Angle" then configuring it to work with CTRL+ALT+Middle Press (Shift + NumPad 4 by default), and voila, it works beautifully.

One can also press Spacebar and search for "View Roll"

Despite that there's a catch, Blender native View_OT_roll works "best" while moving the mouse only from left to right, as opposed to your solution which feels more organic and allows the user to mimic the view roll to the mouse / stylus motion, which I feel has a special value especially if one is working with a CINTIQ, and for more specialized work like working with the Grease Pencil for 2D Animation.

Anyway hope this helps clear up to future people what are their choices regarding the "View Roll" functionality. Keep up the great work! ("2D Roll View" addon provided) (related feature request)

This addon is handy, it would be interesting to have this ALT+MMB hotkey (to roll the 3D view) enabled by default in Blender 2.81.

Roll ability is also useful for CAD/Architectural workflow