Show messages: All
1
2-4
From: bemfarmer
Hi Benji
I always wonder where a script writer finds their code?
Must be in the code for the view buttons.
.mode seems to be left out?
- Brian
From: Max Smirnov (SMIRNOV)
Hi Benji,
this script reverts view under a mouse cursor
code:
script:var viewport = moi.ui.getViewportUnderMouse(); viewport.viewpanel.reverseView(viewport.name);
From: Michael Gibson
Hi Benji, the default name for that view is 'right', and viewpanel.mode is meant to control which of the bottom 5 tabs are active, it returns one of 'split', '3d', 'top', 'front', or 'right'. So for your script there you'd need to put in 'right' instead of 'left', like this:
script:if ( moi.ui.mainWindow.viewpanel.mode != 'right' ) { moi.ui.mainWindow.viewpanel.mode = 'right' } else { moi.ui.mainWindow.viewpanel.reverseView( 'right' ) };
- Michael
Show messages: All
1
2-4