CameraReset
 
 
 

CameraReset

Introduced

v1.0

Description

Resets the camera in a given viewport so that the point of origin is in the center of the viewport.

Scripting Syntax

CameraReset( [View], [AllViews] );

Parameters

Parameter Type Description
View Integer View to reset

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

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 View D
SetValue "Views.ViewD.RightCamera.kine.global.posx", 2.0
SetValue "Views.ViewD.RightCamera.kine.global.posy", -2.0
' Reset Cameras on view D
CameraReset 3

See Also

CameraUndo CameraRedo