|
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?
|
|
|
|
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;
}}}
////
|
|
|