Thank you for adding Arctic view mode + 1 question :p

First of all, Rhino 6, arctic view mode = :heart_eyes: … absolutely love working in this mode. Feeling a little bit like a sculptor. Makes working long hours on modeling (more of) a pleasure. Thank you. UX is important and you guys get it. :slight_smile:

And one short question: is there a shortcut to toggle between the current view port (say perspective) and plan view? I know cntr+tab toggles between all, but I I just want to switch between perspective and front view, is that possible without having to cycle through the four views? Thanks!

Hi Peter - the simplest is probably to use the viewport tabs for this:

image

Here’s a Python that will toggle between Front and Perspective maximized views:


import rhinoscriptsyntax as rs
import scriptcontext as sc



def test():
    
    if sc.doc.Views.ActiveView.ActiveViewport.Name == "Perspective":
        rs.CurrentView ("Front")
    else:
        rs.CurrentView("Perspective")

test()

-Pascal

Thanks Pascal. Silly question…how does one who never used scripts implement this? I have no idea and I just tried a google with no luck.

Hi Peter - yeah… maybe the simplest is to put this on a button:

! _-RunPythonScript (
import rhinoscriptsyntax as rs
import scriptcontext as sc

if sc.doc.Views.ActiveView.ActiveViewport.Name == "Perspective":
    rs.CurrentView ("Front")
else:
    rs.CurrentView("Perspective")

)

Or take the script in my first post as a separate py file and save it (attached here) then use

! _-RunPythonScript "Full path to py file inside double quotes"

ViewTogglerFrontPersp.py (247 Bytes)

-Pascal

Thanks Pascal. I’ll give it a shot! Button works :slight_smile: Now just have to figure out how to create a shortcut from this new button…

CTRL + F1 (top)
CTRL + F2 (front)
CTRL + F3 (right)
CTRL + F4 (perpective)

those can be adjusted in keyboard tab in rhino options

2 Likes

This is perfect. Thank you.