possible to cycle through views?

Next
 From:  yophie
7603.1 
Hi Michael,

Is it possible to set up a script to cycle between all the viewing options (split, 3d, top, front right, split, etc)?
  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
Next
 From:  Michael Gibson
7603.2 In reply to 7603.1 
Hi Yophie,

> Is it possible to set up a script to cycle between all the viewing options
> split, 3d, top, front right, split, etc)?

Yup, the following script will do that:

script: /* Cycle through view modes */ var names = ['split','3d','top','front','right']; var vp = moi.ui.mainWindow.viewpanel; var current = 0; for ( var i = 0; i < names.length; ++i ) { if ( vp.mode == names[i] ) { current = i; break; } } var next = (current+1) % names.length; vp.mode = names[next];


If you set up a shortcut key and then paste that into the "command" part (the right-hand column) of the shortcut key then that key should cycle through the view modes like you want.

Hope this helps!

- Michael
  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:  yophie
7603.3 
Beautiful! Thanks :)
  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