Introduced
4.0
Description
Makes the specified view in a docked layout visible if it's hidden. For example, you can use this command to change the main toolbar from the Toolbar Panel to the Weight Paint Panel or the Palettes Panel.
You specify the name of the view (you can get it from the SIObject.Name property of the View object) to identify it. This allows you to pick from multiple instances of one view type, if necessary. Alternatively, you can use the SwitchToViewByType command, which allows you to specify the view to switch to by SIObject.Type instead. Note: This command cannot switch between any of the toolbar menus on the Toolbar Panel. However, you can use this command with the Type argument set to "Toolbar Panel" to open the toolbar panel and then use the SwitchToolbar command to switch between toolbar menus (Model, Animate, Render, Simulate, and Hair).
Scripting Syntax
SwitchToView( ViewName )
Parameters
|
Parameter |
Type |
Description |
|
ViewName |
SIObject.Name of the view to display. |
Examples
VBScript Example
' ' This example opens the Palettes Panel, the Weight Paint Panel, the Toolbar ' Panel, then switches to the Simulate and then Hair menus on that panel. ' (It happens so fast that you can't really see it well in the UI, but you can ' run each line individually to see each result.) ' SwitchToView "palette" SwitchToView "weightpanel" SwitchToView "vm_views_toolbar" SwitchToolbar 4 SwitchToolbar 5
See Also
Autodesk Softimage v7.5