Switching between views using key shortcuts?
All  1-2  3-4

Previous
Next
 From:  Jacob
4818.3 
Actually... it turns out that these *do* work. They just didn't work in the session that I added them in, for reasons unknown, since I added other shortcuts along these and they worked fine right away.

I'm using Alt+Shift+1..5 for those views.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Jacob
4818.4 
Since this may be useful to some, here is a single key shortcut for switching over views:

javascript code:
var views = ["split", "3d", "top", "front", "right"];
var vp = moi.ui.mainWindow.viewpanel;
var current = vp.mode;
for (var i = 0, len = views.length; i < len; i++) {
	if (current == views[i])
	{
		vp.mode = views[(i+1)%len];
	}
}


Here's the one liner version for copy-pasting:
javascript code:
script:var views = ["split", "3d", "top", "front", "right"]; var vp = moi.ui.mainWindow.viewpanel; var current = vp.mode; for (var i = 0, len = views.length; i < len; i++) {if (current == views[i]){ vp.mode = views[(i+1)%len]; }}
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-2  3-4