v1.0
Resets all views to the global origin (0,0,0).
ResetAllViews( [View], [AllViews] ); |
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View | Integer |
View 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 the ViewD SetValue "Views.ViewD.RightCamera.kine.global.posx", 2.0 SetValue "Views.ViewD.RightCamera.kine.global.posy", -2.0 ' Change settings in all cameras in the ViewA SetValue "Views.ViewA.*.kine.global.posx", -2 SetValue "Views.ViewA.*.kine.global.posy", -2 ' Change settings in all cameras in viewC SetValue "Views.ViewC.*.kine.global.posx", -5 ' After changing one or more views, run the following command ResetAllViews |
' ' TIP: You can also use ResetAllViews to reset a particular view. ' (0 is ViewA, 1 is ViewB, 2 is ViewC, and 3 is ViewD) ResetAllViews 2, false |