Finally figured out how to use Display Toolbars
Steps to hide Workspace toolbars in Model
Warning! Recommend only using this in Model. Using this in Workspace is not recommended!
From Model
1.) Uncheck Display Toolbars
2.) Select titlebar
3.) Check Display Toolbars
If you Uncheck Display Toolbars in the Workspace view, toolbars will hide when you select any other titlebars and show when selecting the 3D view
Then if you Check Display Toolbars, the toolbars are hidden and they will not show! Bug
You can fix this by switching to Model and back to Workspace, or you can type
WindowsManager.DisplayAllToolbars = true
in the Command Console and press the Enter keyboard key
Workspace - Desktop - Display Toolbars
- clintonman
- Captain
- Posts: 5422
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Workspace - Desktop - Display Toolbars
Interesting find. Now just need to find some way to make it work properly.
As far as workspace I found that you can get the toolbars back by checking Display Toolbars and opening up another 3D view.
As far as workspace I found that you can get the toolbars back by checking Display Toolbars and opening up another 3D view.
Re: Workspace - Desktop - Display Toolbars
I am adding a button script to the Desktop
Workspace Desktop
Display Toolbars
Add
Display Toolbars button script
Also added a LEBar T button for hiding Workspace toolbars in Model
I tried several different ways to create a one button script to hide Workspace toolbars in Model using the AllToolbars attribute.
Workspace Desktop
Display Toolbars
Add
Display Toolbars button script
Code: Select all
WindowsManager.DisplayAllToolbars = true
WindowsManager.Activate()
WindowsManager.UpdateWindowsStructure()
Node.Value('%THIS_NAME%', 'AllToolbars') = true
Code: Select all
RsTool.ToggleValue("Preferences/Desktop/AllToolbars")
Re: Workspace - Desktop - Display Toolbars
Trying a different approachclintonman wrote: ↑18 Nov 2020, 16:30 Interesting find. Now just need to find some way to make it work properly.
Getting closer but FRAME = Node.SubObject(WMS, i); is invalid and soft crashes tS761
Code: Select all
WMS = "Project/Windows Manager Space/";
numitems = Node.SubObjectCount(WMS);
FRAME = "";
for(i=0;i<numitems;i++)
{
FRAME = Node.SubObject(WMS, i);
if(Node.ConExists(FRAME,"Frame Type"))
if(Node.Value(FRAME,"Frame Type") != 0) return;
WindowsManager.CloseWindow(WMS + FRAME)
WindowsManager.Activate()
WindowsManager.UpdateWindowsStructure()
}
I better way would be to Hide & Show verses Closing by using the Hidden attribute
- clintonman
- Captain
- Posts: 5422
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Workspace - Desktop - Display Toolbars
I'll try to get back to you, but the code is failing because you loop through the WMS and delete/close windows at the same time, so by the time it gets near the end the nodes are already gone so it can't read them. As soon as you remove a node the "numitems" isn't valid anymore.
Just had an idea you can try numitems--; after you close the window. That might work. Not sure.
Just had an idea you can try numitems--; after you close the window. That might work. Not sure.
Re: Workspace - Desktop - Display Toolbars
Thanks, I went a different route using in part your Select All script
Closes floating panels too
Closes floating panels too
Code: Select all
var wms = "Project/Windows Manager Space";
var selection = "";
for(var i=0;i<Node.SubObjectCount(wms);i++)
{
var subobj = wms + "/" + Node.SubObject(wms, i);
if(Node.SubObject(wms, i) != "LE2Master" && Node.SubObject(wms, i) != "Library" && Node.SubObject(wms, i) != "Frame Window" && Node.SubObject(wms, i) != "Frame Properties")
selection += subobj + ";";
}
Space.Select(selection);
Nsel = Node.SelectedCount();
SelArray = new Array(Nsel);
for (i=0; i<Nsel; i++)
{
SelArray[i] = Node.Selected(i);
}
for (i=0; i<Nsel; i++)
{
Sel = SelArray[i];
WindowsManager.CloseWindow(Sel);
WindowsManager.Activate();
WindowsManager.UpdateWindowsStructure();
Space.Unselect();
}