SetViewCamera

Introduced

v5.1

Description

Sets the active camera for the specified view.

Scripting Syntax

SetViewCamera( CameraName, [View] );

Parameters

Parameter Type Description
CameraName String Name of camera to make active in the view.

For pre-defined cameras pass "top", "front", "right", "user", or "render".

For scene and spotlight cameras pass the name of the camera or spotlight.
View Integer Viewport in which to set the camera.

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

' Set the camera in view B to the top camera

SetViewCamera "top", 1

set l_Camera = GetViewCamera(1)

Application.LogMessage "Camera B: " & l_Camera

'INFO : Camera B: Views.ViewB.TopCamera