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® / Autodesk Maya 2009 / Single panel menu bar?
  RSS 2.0 ATOM  

Single panel menu bar?
Rate this thread
 
45778
 
Permlink of this thread  
avatar
  • Total Posts: 2
  • Joined: 30 July 2010 08:58 AM

I have been trying to figure out if there is a command that will allow me to get rid of the panel menu buttons. I’m aware -mbv will do the drop down menu bar, and hitting ctrl-shift-m will get ride of the button bar across all panels, but i’m trying to get if off of a single panel.

I echoed all commands to see what happens when hitting ctrl-shift-m but nothing helps since it’s to hide it across all panels. I am doing this for a separate facial rig window I am creating and do not want any menu bars on one of my views.

Is there any way to do this or am I on an unending quest?



Replies: 0
avatar

The following will toggle the panel with focus.
put it on a hotkey

//////

string $mpl = `getPanel -withFocus`;
string $fl = `modelPanel -q -barLayout $mpl`;
if ("” != $fl && `frameLayout -q -exists $fl`)
{if (`frameLayout -q -collapse $fl`)
{frameLayout -e -collapse 0 $fl;
if(`about -linux`) {
frameLayout -e -manage false $fl;
if(!$state) frameLayout -e -height 20 $fl;
frameLayout -e -manage true $fl;
}}
else {
frameLayout -e -collapse 1 $fl;
if(`about -linux`) {
frameLayout -e -manage false $fl;
if(!$state) frameLayout -e -height 20 $fl;
frameLayout -e -manage true $fl;
}}}

////



Replies: 0