clintonman wrote: ↑05 Nov 2021, 15:30ToolbarResultsWeird.jpgtrueBlue wrote: ↑05 Nov 2021, 14:28You never cease to amaze me!clintonman wrote: ↑04 Nov 2021, 22:57 Here is a version of the switch main toolbar script.
It works in 4View, Default, floating and yafaray layouts and it closes and opens the small main toolbar. It doesn't open it in place so it would have to be dragged back into place.
One thing though, all though you can Ctrl + Drag the Main2 toolbar back into place, it is different in how I set up the layouts
Here is a different version that Only works in the 4View, Default, Floating, and Yafaray layouts
New:
Opens in a floating panel
If you are in one of the above layouts, it loads that layout, else the installer is removed with an Alert
Modal questions to remove the Main2 toolbar and remove the installer
Cancel button
my confusing result before I figured out what was happening
The dialog is confusing. Maybe the "Save your Layout Remove the installer?" should be 2 dialogs. It looks like it's asking to save the layout and remove the installer. or maybe it can be something wordier like "Remove the installer? Save your Layout after choosing yes or no".
Maybe it should also say that the toolbar will update after the selection is made since it's asking to remove the installer when the toolbar looks like it hasn't changed.
Code: Select all
System.Alert("You will need to Save your " +layout+ " layout\nto make these changes permanent");
if(Question("Remove the installer?")) {
Node.Delete(Space.CurrentScene() + "/Switch Workspace Main toolbar")
}
Moved the Alert & Question so the toolbar change happens before the Alert Uploaded to the previous post