/
viewLayout
viewLayout
Description
This command is used for setting view types and view layouts. It changes the current interface layout to one of eight indexed layouts or changes a current view to any of the four available view types.
Using the -v options, you may configure the preset layouts to contain named layout elements in each of the views defined by any layout.
The number of views ranges from one to four. They are numbered left to right, with the first (-v1) being located in the upper left, the fourth (-v4) located in the lower right.
The argument for the type of viewLayout is optional if any of the flags are used.
Functional area
Interface
Command syntax
Syntax
viewLayout viewTypeIndex [-v1 string] [-v2 string] [-v3 string] [-v4 string] [-fullwindow boolean] [-swap] [-current string] [-active integer] |
Argument
Name | Type | Required | Comments |
---|---|---|---|
viewTypeIndex | The arguments are an integer value layout number from 1 to 8 indicating the desired view layout. |
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
v1 | 1 | string | — | Set viewport 1 to specified type |
v2 | 1 | string | — | Set viewport 2 to specified type |
v3 | 1 | string | — | Set viewport 3 to specified type |
v4 | 1 | string | — | Set viewport 4 to specified type |
fullwindow | 1 | boolean | — | Set active view to/fromfull window |
swap | 0 | — | — | Swaps to previous view layout |
current | 1 | string | — | Set the current view |
active | 1 | integer | — | — |
Return value
void
Examples
// Set view layout to single camera view viewLayout 1; viewLayout -current cameras;
// The first line in the following command configures the view // layout to contain 3 viewports. // The second line establishes a 3D Scene view, a Graph view, // and a Hierarchy view. // Note that second command does not require an argument viewLayout 5; viewLayout -v1 perspective -v2 graph -v3 vpl;
Additional information
Related commands
, multiple selections available,