## ResetAllViews

### Introduced

v1.0

### Description

Resets all views to the global origin (0,0,0).

### Scripting Syntax

    ResetAllViews( [View], [AllViews] );

### Parameters

Parameter | Type | Description
--- | --- | ---
View | Integer | View Default Value: -1 (current viewport)
Possible Values: | Description:
-1 | Current viewport
0 | Viewport A
1 | Viewport B
2 | Viewport C
3 | Viewport D
AllViews | Boolean | True to reset all views at once. If this parameter is used, the View parameter is ignored. Default Value: False

### Examples

#### 1. VBScript Example

    ' Create a Sphere primitive

    CreatePrim "Sphere", "NurbsSurface", "MySphere"

    ' Change the Camera View setting

    SetValue "Camera.kine.global.posx", 5

    SetValue "Camera.kine.global.posy", -5

    SetValue "Camera.kine.global.rotx", -20

    SetValue "Camera.kine.global.roty", 60

    ' Change RightCamera settings in the ViewD

    SetValue "Views.ViewD.RightCamera.kine.global.posx", 2.0

    SetValue "Views.ViewD.RightCamera.kine.global.posy", -2.0

    ' Change settings in all cameras in the ViewA

    SetValue "Views.ViewA.*.kine.global.posx", -2

    SetValue "Views.ViewA.*.kine.global.posy", -2

    ' Change settings in all cameras in viewC

    SetValue "Views.ViewC.*.kine.global.posx", -5

    ' After changing one or more views, run the following command

    ResetAllViews

#### 2. VBScript Example

    '

    ' TIP: You can also use ResetAllViews to reset a particular view.

    ' (0 is ViewA, 1 is ViewB, 2 is ViewC, and 3 is ViewD)

    ResetAllViews 2, false