Workspace - Desktop - Display Toolbars

Share with others..
Post Reply
User avatar
trueBlue
Captain
Posts: 3145
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Workspace - Desktop - Display Toolbars

Post by trueBlue »

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
Uncheck Display Toolbars.png
Check Display Toolbars.png
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
CMD.png
CMD.png (3.27 KiB) Viewed 262 times

User avatar
clintonman
Captain
Posts: 3718
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace - Desktop - Display Toolbars

Post by clintonman »

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.
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 3145
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace - Desktop - Display Toolbars

Post by trueBlue »

I am adding a button script to the Desktop

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
Also added a LEBar T button for hiding Workspace toolbars in Model

Code: Select all

RsTool.ToggleValue("Preferences/Desktop/AllToolbars")
Display Toolbars.png
I tried several different ways to create a one button script to hide Workspace toolbars in Model using the AllToolbars attribute.

User avatar
trueBlue
Captain
Posts: 3145
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace - Desktop - Display Toolbars

Post by trueBlue »

clintonman wrote:
18 Nov 2020, 16:30
Interesting find. Now just need to find some way to make it work properly.
Trying a different approach
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()
	}
Any suggestions?

I better way would be to Hide & Show verses Closing by using the Hidden attribute
Hidden.png
Hidden.png (8.08 KiB) Viewed 234 times

User avatar
clintonman
Captain
Posts: 3718
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Workspace - Desktop - Display Toolbars

Post by clintonman »

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.
Clinton Reese

http://clintons3d.com

User avatar
trueBlue
Captain
Posts: 3145
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Workspace - Desktop - Display Toolbars

Post by trueBlue »

Thanks, I went a different route using in part your Select All script
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();
}
Close Workspace toolbars.png

Post Reply