clintonman wrote: ↑17 Aug 2019, 19:57
trueBlue wrote: ↑17 Aug 2019, 19:52
clintonman wrote: ↑17 Aug 2019, 19:31
What does this do that not so unique winGUID doesn't do?
The Perspective view's (which is the same window in all of the updated layouts (same WinID)) WinGUID Bar toolbar uses
it's Window Frame's WinID and has a prototype.
The Top view's WinGUID Bar toolbar uses
it's Window Frame's WinID and does not have a prototype. No Reset.
The Front view's WinGUID Bar toolbar uses
it's Window Frame's WinID and does not have a prototype. No Reset.
The Left view's WinGUID Bar toolbar uses
it's Window Frame's WinID and does not have a prototype. No Reset.
So it's for resetting toolbars or something like that?
clintonman wrote: ↑17 Aug 2019, 19:31What does this do that not so unique winGUID doesn't do?
Each View's Frame has different WinIDs. Each View's toolbar uses its Frame's WinID in the commands.
Meaning the view does not have to be in focus. It only works in that view. Period!
Here is the commands for the New View window's toolbar for an example:
Code: Select all
// {653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}
function Execute(params)
{
// WinGUID_Bar - New View command
WindowsManager.CloseWindow("/Project/Windows Manager Space/New View");RsFileIO.LoadObject(System.GetMainDir() + '\\scripts\\preobjects\\New View.RsObj', "/Project/Windows Manager Space");Node.Value("/Project/Windows Manager Space/New View", "WinID") = "{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}";WindowsManager.Activate();WindowsManager.UpdateWindowsStructure();
;WindowsManager.Activate()
// New View Bar
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '0');WindowsManager.Activate() //Perspective
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '3');WindowsManager.Activate() //Left
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '4');WindowsManager.Activate() //Right
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '6');WindowsManager.Activate() //Front
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '5');WindowsManager.Activate() //Back
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '2');WindowsManager.Activate() //Top
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '1');WindowsManager.Activate() //Bottom
D3DView.SwitchEyeCameraType('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}', '7');WindowsManager.Activate() //Isometric
RsTool.SetNearestOrthoView('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() //Nearest ortho
D3DView.LoadRAPreset('', -1.0, -1.0, 'Solid','{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
D3DView.LoadRAPreset('', -1.0, -1.0, 'Wire','{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
D3DView.LoadRAPreset('', -1.0, -1.0, 'None','{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
D3DView.LoadRAPreset('', 1.0, 0.0, '', '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() //Opaque
D3DView.LoadRAPreset('', 1.0, 1.0, '', '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() //OpaqueWire
D3DView.LoadRAPreset('', 0.5, 0.0, '', '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() /Trans
D3DView.LoadRAPreset('', 0.5, 0.0, '', '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() /TransWire
D3DView.LoadRAPreset('', 0.0, 1.0, '', '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() /Wire
RsTool.ResetView('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
RsTool.LookAtSelection('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
RsTool.SelectNextObj();RsTool.LookAtSelection('{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate() //RMB Command Help Text Look at Selection / Look at next object
D3DView.SetActiveCamera("", '{653BCA02-BC52-4FAD-AD04-6BC2AD9B25B7}');WindowsManager.Activate()
RsFileIO.LoadObject(System.GetMainDir() + '\\scripts\\preobjects\\Frame Window New View.RsObj', "/Project/Windows Manager Space");
WinID = WindowsManager.GetWorkWindow();
RsFileIO.LoadObject(System.GetMainDir() + '\\Scripts\\preobjects\\NewViewBar.RsObj', WinID);
WindowsManager.ActivateFrame(WinID);
WindowsManager.Activate();
WindowsManager.UpdateWindowsStructure();
}
clintonman wrote: ↑17 Aug 2019, 19:31So it's for resetting toolbars or something like that?
A prototype is a saved toolbar in the Toolbar Prototypes Encapsulator.
I did not save prototypes for the ortho view's toolbars, by design, so there is no Reset. They are saved with the Layout.