v1.0
Resets the camera in a given viewport so that the point of origin is in the center of the viewport.
CameraReset( [View], [AllViews] ); |
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View | Integer |
View to reset Default Value: -1 (current viewport)
|
||||||||||||
AllViews | Boolean |
True to reset all views at once. If this parameter is used, the View parameter is ignored. Default Value: False |
' 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 |