## CameraUndo

### Introduced

v3.0

### Description

Cancels the last camera change in a viewport.

### Scripting Syntax

    CameraUndo( [View] );

### Parameters

Parameter | Type | Description
--- | --- | ---
View | Integer | View to undo Default Value: -1 (current viewport)
Possible Values: | Description:
-1 | Current viewport
0 | Viewport A
1 | Viewport B
2 | Viewport C
3 | Viewport D

### Examples

#### VBScript Example

    ' Create a Sphere primitive
    CreatePrim "Sphere", "NurbsSurface", "MySphere"
    ' ===============================================
    ' Perform a manual View Operation (ex Pan/Zoom/Orbit
    ' tool) on top View in Viewport "A", before
    ' calling the next command
    ' ===============================================
    ' Undo Last Camera change
    CameraUndo 0

### See Also

CameraRedo CameraReset