SwitchToViewByType

導入

v4.0

カテゴリ

一般

詳細

ドッキングされたレイアウトで指定されたビューを表示します(非表示になっている場合)。 たとえば、このコマンドを使用して、メイン ツールバーを Toolbar Panel から Weight Paint Panel や Palettes Panel に変更することができます。

ビューのタイプを指定して(ViewオブジェクトのSIObject.Typeプロパティから取得できます)、ビューを識別することができます。 または、SwitchToViewコマンドを使用して、1つのビューのタイプの複数のインスタンスから、そのSIObject.Nameを使用して選択することもできます。 注: このコマンドを使用して、Toolbarパネルのツールバーメニューを切り替えることはできません。 ただし、このコマンドの Type 引数を「Toolbar Panel」に指定してツールバーパネルを開き、SwitchToolbarコマンドを使用してツールバーメニュー(Model、Animate、Render、Simulate、Hair など)を切り替えることができます。

スクリプト構文

SwitchToViewByType( ViewType );

パラメータ

パラメータ タイプ 詳細
ViewType 文字列 表示するビューのタイプ(可能な値のリストについては、OpenViewコマンドを参照)。

VBScript の例

' 
' This example opens the Palettes Panel, then 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.)
' 
SwitchToViewByType "Palettes"
SwitchToViewByType "Toolbar Panel"
SwitchToolbar 4
SwitchToolbar 5

関連項目

SwitchToView OpenView SwitchToolbar OpenXSIExplorer OpenAnimationEditor OpenTransientExplorer OpenNetView Layout.CreateView