ToggleMuteSolo

Introduced

v1.0

Description

Toggles the Mute and Solo flags for a viewport. Muting the display of viewports speeds up the refresh rate of the visible viewport.

When defining a viewport as Solo, all other viewports become grayed out. When using ToggleMuteSolo with Mute, the given viewport's viewing state is reverted to the previously selected state.

Scripting Syntax

ToggleMuteSolo( Target, [Mode] );

Parameters

Parameter Type Description
Target Integer Viewport to mute or solo

Possible Values:

Description:

0 Viewport A
1 Viewport B
2 Viewport C
3 Viewport D
4 Current viewport (the one under the mouse)
Mode Integer Mute or Solo

Default Value: 1

Possible Values:

Description:

0 Mute
1 Solo

Examples

VBScript Example

' Solo viewport D (A, B, and C are then muted)

ToggleMuteSolo 3

' Mute viewport C, but since C was already deactivated by the above command,

' its viewing state toggles and it becomes visible again.

ToggleMuteSolo 2, 0