## CreateShotCameraAndSwitch

### Introduced

v12.0 (2014)

### Description

Creates a shot camera based from a source viewport and sets it as the camera of another viewport

### Scripting Syntax

    oReturn = CreateShotCameraAndSwitch( Viewport, CameraName, DestViewport, [WithoutInterest] );

### Return Value

Returns the new camera object

### Parameters

Parameter | Type | Description
--- | --- | ---
Viewport | siViewport | The source Viewport, leaving a blank string will cause the function to duplicate the current active viewport camera
CameraName | String | Name to give the new camera
DestViewport | siViewport | Viewport to set the active camera to
WithoutInterest | Boolean | Switch to create a camera with or without an interest Default Value: true

### See Also

CreateShotCamera