OpenView

Description

Opens a new editor or other type of view in a floating window. This command also allows you to change which panel appears in the toolbar/palettes panel (provided that you haven't removed that panel from your customized layout -- see the warning below). You can display the Toolbar Panel (containing the main toolbar menus) or the Weight Paint Panel.

You can use this command to open multiple instances of any view that supports multiple instances (for example, two explorers) by setting the Reuse parameter to False. The views that support multiple instances are noted in the value list of the Type parameter.

Tip: There also some specialized commands available which take special arguments. For example, OpenNetView allows you to specify which URL to open; OpenAnimationEditor allows you to specify which animation view to show in the Animation Editor (for example, "FCurve Editor", "DopeSheet", etc.); and OpenXSIExplorer allows you to specify which viewer to show in the XSI Explorer (for example "Object View", "Schematic", etc.).

If you are looking for a way to open the transient explorer, you have to use OpenTransientExplorer as there is no corresponding value for OpenView.

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).

Warning: If you are using a customized layout in which you have removed any of the embedded panels or views and you use this command to open one of those panels or views, it appears in a floating window. Conversely, if you have embedded a view in your customized layout and you use this command to open that view, it remains there and no extra window pops up (even if the view supports multiple instances).

Scripting Syntax

OpenView( Type, [Reuse] )

Parameters

Parameter

Type

Description

Type

String

Type of the new view. See View Definitions for a list of the possible type strings you can use.

Reuse

Boolean

Reuse any existing floating view (has no effect on embedded panels or views).

Note: This parameter only applies to views of the same type that are already open. For example, it has no effect if you specify False when you are opening the Script Editor for the first time.

Default Value: True

Return Value

Returns the view as an View object.

See Also

SwitchToView

SwitchToViewByType

SwitchToolbar

OpenXSIExplorer

OpenAnimationEditor

OpenTransientExplorer

OpenNetView

Layout.CreateView

View Definitions

 

 

 

Examples

• See OpenView.1.vbs

• See OpenView.2.vbs

• See OpenView.3.vbs



Autodesk Softimage 2011