Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Four View (front, side, top persp) layout with fixed panel configuration?
  RSS 2.0 ATOM  

Four View (front, side, top persp) layout with fixed panel configuration?
Rate this thread
 
63943
 
Permlink of this thread  
avatar
  • Total Posts: 16
  • Joined: 27 January 2012 07:57 AM

Hello AREA Community!

After my F2, F3, F4, F5 Hotkeys was assigned to:

switchModelView front;
switchModelView side;
switchModelView top;
switchModelView Perspective;


When I’m in Single Pane layout and using them everything is alright.
But sometimes when I’m trying to switch from Single to Four Panes layout by QuickLayout bar button or otherwise, panels arrangement (order of viewports) is changing.

I don’t want to have flow layout. I want always to have my Perpective viewport in topLeft corner, front (Ortho) in bottomLeft, top in topRight and side(Ortho) always bottomRight arranged.

How about fixed 4 panel configuration? Is there MEL Script or something for this purpose?
Thanks!



Replies: 0
avatar
  • ldunham1
  • Posted: 29 January 2012 05:08 AM

The reason it keeps switching the panels about is because you not switching panels, your switching views.

So if your in four pane view, you switch to single (persp), then toggle to side then switch to four pane view, what was the persp will now be side.

Its simple enough to make a custom view, have it ready, (ie made) then on buttons for switching layouts (on left) right click and go “Save Current Layout...”, give it a name and press “Ok”.
That layout can now be activated by right clicking on the buttons and selecting that layout, if you wanted to assign it to a hokey, simply use this script.

setNamedPanelLayout "SAVED_LAYOUT_NAME_HERE";

That should work fine for you now.



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 1
/userdata/avatar/03uje2q83.jpg

Saved layout? So it could be the solution.
I’ll try ... and thanks a million for your help !!!

Author: Matskevich

Replied: 30 January 2012 04:18 PM  
avatar
  • ldunham1
  • Posted: 30 January 2012 10:22 PM

no problem



Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 0